That's the idea, and then you'd just repeat that idea for each directory you find- which is why recursion is your friend.
Type: Posts; User: KevinWorkman
That's the idea, and then you'd just repeat that idea for each directory you find- which is why recursion is your friend.
Like I said, recursion is your friend here. Hint: a File instance can represent a directory. In which case, it has handy methods for listing all of the Files inside that directory (which themselves...
What have you tried? Where are you stuck? Is this for homework? Recursion is your friend here.