What does "::" do in this code?
Files.walk(Paths.get("res")).forEach(System.out::println);
I know that we use ':' for an enhanced for loop but I never saw 2 of them together
What does "::" do in this code?
Files.walk(Paths.get("res")).forEach(System.out::println);
I know that we use ':' for an enhanced for loop but I never saw 2 of them together