import java.io.File;
publicclass Main {
publicstaticvoid main(String[] argv) throws Exception {
}
// Process only directories under dir
publicstaticvoid visitAllDirs(File dir) {
if (dir.isDirectory()) {
System.out.println(dir);
String[] children = dir.list();
for (int i = 0; i < children.length; i++) {
visitAllDirs(newFile(dir, children[i]));
}
}
}
}