Finished code example for section3,chapter4, CreateDirectories.java