Java Importar Arquivo de Texto para Arraylist
List<String> list = Files.readAllLines(new File("input.txt").toPath(), Charset.defaultCharset() );
Nimorum
List<String> list = Files.readAllLines(new File("input.txt").toPath(), Charset.defaultCharset() );
Scanner s = new Scanner(new File("filepath"));
ArrayList<String> list = new ArrayList<String>();
while (s.hasNext()){
list.add(s.next());
}
s.close();