1List<String> list = Files.readAllLines(new File("input.txt").toPath(), Charset.defaultCharset() );
1Scanner s = new Scanner(new File("filepath"));
2ArrayList<String> list = new ArrayList<String>();
3while (s.hasNext()){
4 list.add(s.next());
5}
6s.close();