I\'m writing a program in Java and one of the things that I need to do is to create a set of every valid location for a shortest path problem. The locations are defined in a
You should use this :
Scanner scanner = new Scanner(fileObj).useDelimiter("\z"); System.out.println(scanner.next());