1 | import java.io.File; |
2 | |
3 | /** list - lists all files+dir in top-level of input directory */ |
4 | public class main { |
5 | public static void main(String[] args) { |
6 | File[] files = new File("input").listFiles(); |
7 | if (files != null) for (File f : files) { |
8 | System.out.println(f.getName()); |
9 | } |
10 | } |
11 | } |
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #573 |
Snippet name: | list (JavaX) |
Eternal ID of this version: | #573/1 |
Text MD5: | 371279a45ac48079e975dfe6b4069bc1 |
Author: | stefan |
Category: | |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2015-04-12 22:42:13 |
Source code size: | 307 bytes / 11 lines |
Pitched / IR pitched: | No / Yes |
Views / Downloads: | 840 / 767 |
Referenced in: | [show references] |