Saturday, October 19, 2019

keyword - What :: mean in java?

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

No comments:

Post a Comment