package tumbleweed;

import java.util.Scanner;

public class Input {
	//TODO: add variables
	public int data;
	
	public Input(Scanner s) {
		//TODO: read input
	}
}
@@ -156,9 +156,835 @@
 nput%0A%09%7D%0A
+%09%0A%09static LinkedList%3CInput%3E readAll() %7B%0A%09%09LinkedList%3CPath%3E files = new LinkedList%3C%3E();%0A%09%09Path path = FileSystems.getDefault().getPath(%22data%22);%0A%09%09try %7B%0A%09%09%09listFiles(path, files);%0A%09%09%7D catch (IOException e) %7B%0A%09%09%09// TODO Auto-generated catch block%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%09LinkedList%3CInput%3E inputs = new LinkedList%3C%3E();%0A%09%09for (Path p : files) %7B%0A%09%09%09try %7B%0A%09%09%09%09inputs.add(new Input(new Scanner(p)));%0A%09%09%09%7D catch (IOException e) %7B%0A%09%09%09%09e.printStackTrace();%0A%09%09%09%7D%0A%09%09%7D%0A%09%09return inputs;%0A%09%7D%0A%0A%09static void listFiles(Path path, LinkedList%3CPath%3E files) throws IOException %7B%0A%09%09try (DirectoryStream%3CPath%3E stream = Files.newDirectoryStream(path)) %7B%0A%09%09%09for (Path entry : stream) %7B%0A%09%09%09%09if (Files.isDirectory(entry)) %7B%0A%09%09%09%09%09listFiles(entry, files);%0A%09%09%09%09%7D else %7B%0A%09%09%09%09%09if (entry.endsWith(%22.in%22)) %7B%0A%09%09%09%09%09%09files.add(entry);%0A%09%09%09%09%09%7D%0A%09%09%09%09%7D%0A%09%09%09%7D%0A%09%09%7D%0A%09%7D%0A
 %7D

read all inputs