[Solved] How to sort numeric value in file
To read a file of “lines” in Java you can use the Files class like this: final List<String> l = Files.readAllLines(Paths.get(“/some/path/input.txt”)); This reads a file and stores each line in a List. When you have the List of String objects you can use a simple Comparator and the Collections.sortmethod. Check this code out: final List<String> … Read more