List file structure within folder or hard drive

This code example lists the files and folders and also the content in all subfolders.

With recursive calls the file/directory tree can be listed with a relatively small amount of code.

The purpose of the getTabs method and the variable tabCounter is only to make the output more viewable with indenting for each level.

Search for more Java info on this site here:
Custom Search

Any thoughts or questions?