[Solved] List of files in directory with new File API


What about this?

Files.list(Paths.get("somedir")).sorted().forEach(System.out::println);

1

solved List of files in directory with new File API