Code: Select all
String[] stra = Files.readLines(Paths.get(INPUT_FILE));
for(String s: stra) System.out.println(str);
The line: System.out.println(str);
Should be -> System.out.println(s);
If it is not intentional.
Moderator: admin
Code: Select all
String[] stra = Files.readLines(Paths.get(INPUT_FILE));
for(String s: stra) System.out.println(str);
Users browsing this forum: Bing [Bot] and 4 guests