Skip to content

Instantly share code, notes, and snippets.

@sblendorio
Created November 12, 2019 13:50
Show Gist options
  • Save sblendorio/94d60fdf70630ebae2178024e79d39be to your computer and use it in GitHub Desktop.
Save sblendorio/94d60fdf70630ebae2178024e79d39be to your computer and use it in GitHub Desktop.
get files list from directory.java
public static void main(String[] s) {
File file = Paths.get("c:/temp").toFile();
Arrays.stream(file.listFiles()).forEach(System.out::println);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment