private static void recursion(String path){
File file=new File(path);
File[] files= file.listFiles();
if (files!=null) {
for (int i = 0; i < files.length; i++) {
if (files[i].isDirectory()) {
if (files[i].listFiles()==null) {
System.out.println(files[i].getAbsolutePath());
}
recursion(files[i].getAbsolutePath());
}
}
}
}