I want to read a text file containing space separated values. Values are integers. How can I read it and put it in an array list?
Here is an example of contents of t
read the file and then do whatever you want java8 Files.lines(Paths.get("c://lines.txt")).collect(Collectors.toList());