some-advent-of-code: 07a9c09fcdb8f85f160580ab41a945a32e1261d8

     1: 
     2: import java.io.IOException;
     3: import java.nio.file.*;
     4: import java.util.*;
     5: 
     6: public class Exercise21001
     7: {
     8: 
     9: 	public static void main(
    10: 			String args[]
    11: 	) {
    12: 		final String here = "e21001.m ";
    13: 		if ( args.length < 1 )
    14: 		{
    15: 			throw new RuntimeException( here +"add a filename argument" );
    16: 		}
    17: 		String userSaysFile = args[ 0 ];
    18: 		List<String> fileLines = new LinkedList<>();
    19: 		try
    20: 		{
    21: 			Path where = Paths.get( userSaysFile );
    22: 			fileLines = Files.readAllLines( where );
    23: 		}
    24: 		catch ( IOException | InvalidPathException ie )
    25: 		{
    26: 			System.err.println( here +"couldn't read file "+ userSaysFile +" because "+ ie );
    27: 			return;
    28: 		}
    29: 		/*
    30: 		- interpretation of spec -
    31: 		*/
    32: 		Exercise21001.( fileLines );
    33: 	}
    34: 
    35: 
    36: 	private static void (
    37: 			List<String> fileLines
    38: 	) {
    39: 		for ( String line : fileLines )
    40: 		{
    41: 			if ( line.isEmpty() )
    42: 				continue;
    43: 		}
    44: 		System.out.println( "\t"+  );
    45: 	}
    46: 
    47: 
    48: }
    49: 
    50: 
    51: 
    52: 
    53: 
    54: 
    55: 
    56: 
    57: 
    58: 
    59: 
    60: 
    61: 
    62: 
    63: 
    64: 
    65: 
    66: 
    67: 
    68: 
    69: 
    70: 
    71: 
    72: 
    73: 
    74: 
    75: 

Generated by git2html.