62,615
社区成员
发帖
与我相关
我的任务
分享
try(DirectoryStream<Path> b = Files.newDirectoryStream(Paths.get( "C:/"))) {
b.forEach(System.out::println);
}
System.out.println("*********************");
try(Stream<Path> b = Files.list(Paths.get( "C:/"))) {
b.forEach(System.out::println);
}