1try (Stream<Path> walkStream = Files.walk(Paths.get("your search directory"))) {
2 walkStream.filter(p -> p.toFile().isFile()).forEach(f -> {
3 if (f.toString().endsWith("file to be searched")) {
4 System.out.println(f + " found!");
5 }
6 });
7}
8