Saturday 19 October 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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...