Given: Directory on disk (for example: "D: / new")
File file = new File("D:/new"); File[] a = file.listFiles(); for (int i = 0; i < a.length; i++) { System.out.println(a[i]); }: How to check the number of files inside this directory with all subfolders