Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Looping problem

  Asked By: Joao    Date: May 02    Category: Java    Views: 595

I have a problem in simple looping, for example i want to go to the last child
using for loop or while loop.
more clearly, if i am browsing the file system using for loop i.e.,

File files[] = new File("C:\\").listFiles();
for(int i=0;i<files.length;i++)

this few lines of coding will give output of the files/folders in root of "C:"
but i want to loop inside each and every folder in root, even that folder
containing few more sub-folders i want to go inside to that till last folder.

i know there will be some easy way to do this, :)



No Answers Found. Be the First, To Post Answer.

Didn't find what you were looking for? Find more on Looping problem Or get search suggestion and latest updates.