Anonymous user
Unix/ls: Difference between revisions
→{{header|Java}}: Simplify
(Added Pike implementation) |
(→{{header|Java}}: Simplify) |
||
Line 532:
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
Line 541 ⟶ 539:
public static void main(String[] args) throws IOException {
Files.list(Path.of(".")).forEach(System.out::println);
}
}
</lang>
|