@@ -0,0 +1,790 @@
+package fr.friquerette.find;%0D%0A%0D%0Aimport java.io.IOException;%0D%0Aimport java.nio.file.FileVisitResult;%0D%0Aimport java.nio.file.Files;%0D%0Aimport java.nio.file.Path;%0D%0Aimport java.nio.file.Paths;%0D%0Aimport java.nio.file.SimpleFileVisitor;%0D%0Aimport java.nio.file.attribute.BasicFileAttributes;%0D%0A%0D%0Apublic class FileSimpleFileVisitor extends SimpleFileVisitor%3CPath%3E %7B%0D%0A%0D%0A%09public static void main(String%5B%5D args) throws IOException %7B%0D%0A%09%09Path startingDir = Paths.get(%22C:%5C%5CJava%5C%5Capache-tomcat-8.0.36%5C%5Cwebapps%22);%0D%0A%09%09Files.walkFileTree(startingDir, new FileSimpleFileVisitor());%0D%0A%09%7D%0D%0A%0D%0A%09@Override%0D%0A%09public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) %7B%0D%0A%0D%0A%09%09if (file.toString().endsWith(%22.java%22)) %7B%0D%0A%09%09%09System.out.println(file.getFileName());%0D%0A%09%09%7D%0D%0A%09%09return FileVisitResult.CONTINUE;%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

add a SimpleFileVisitor