Created
November 12, 2019 13:50
-
-
Save sblendorio/94d60fdf70630ebae2178024e79d39be to your computer and use it in GitHub Desktop.
get files list from directory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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