What will be the output of the following program? The directory structure is given below.
import java.io.File;
public class PrintDirectories {
public static void main(String[] args) {
File file = new File("E:\\meritcampus\\");
printDirectories(file, 0);
}
public static void printDirectories(File parent, int level) {
for (File file : parent.listFiles()) {
System.out.print(file.getName() + "~" + level + " ");
printDirectories(file, level++);
}
}
}