Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

11
LINES

< > BotCompany Repo | #573 // list (JavaX)

JavaX source code - run with: x30.jar

import java.io.File;

/** list - lists all files+dir in top-level of input directory */
public class main {
  public static void main(String[] args) {
    File[] files = new File("input").listFiles();
    if (files != null) for (File f : files) {
      System.out.println(f.getName());
    }
  }
}

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: 623 / 575
Referenced in: [show references]