The File class used in creating Scanner's, BufferedReaders, etc. has some nifty methods:
- File[] listFiles() - If the name given to the File constructor is a directory, this method returns an array of File objects representing the files and subdirectories.
- String getName() - returns the String name of the file (or directory)
- boolean isDirectory() - can you guess?