Java tutorial
import java.nio.file.Files; import java.nio.file.Paths; public class Main { public static void main(String[] args) throws Exception { Files.list(Paths.get("c:/Java_Dev")).sorted().forEach(System.out::println); } }