import java.io.File; /** list2 * lists all files+dir in top-level of input directory * Has better output than "list" */ public class main { public static void main(String[] args) { File[] files = new File("input").listFiles(); if (files == null) files = new File[0]; System.out.println("Meta: FileCount=" + files.length); for (File f : files) { System.out.println("File: " + f.getName()); } } }
Began life as a copy of #573
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: | #574 |
| Snippet name: | list2 (JavaX) |
| Eternal ID of this version: | #574/1 |
| Text MD5: | 4f84d96c444e5a7a4068f2b9384b73f7 |
| 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:45 |
| Source code size: | 443 bytes / 15 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 947 / 981 |
| Referenced in: | [show references] |