Feb. 8th, 2005

juan_gandhi: (Default)
I think I got it. Use double loop. No recursion necessary (it is hidden in tree() method).


import static com.myjavatools.lib.Files.*;

..........

    for (File dir : tree(new File("."))) {
      System.out.println(dir);
      for (File f : files(dir)) {
        System.out.println("  " + f);
      }
    }





Check out myjavatools.com - lib, version 5.

Profile

juan_gandhi: (Default)
Juan-Carlos Gandhi

September 2025

S M T W T F S
 1 2345 6
78 9 10 111213
14151617181920
21222324252627
282930    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Sep. 14th, 2025 09:33 am
Powered by Dreamwidth Studios