Created
July 26, 2017 04:29
-
-
Save ashigeru/ec3fe33b60c5ba1c3c6352c53ec6ec80 to your computer and use it in GitHub Desktop.
method reference w/ capturing left terms
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MRC { | |
public static void main(String[] args) { | |
Supplier<Integer> s = new AtomicInteger()::incrementAndGet; | |
System.out.println(s.get()); | |
System.out.println(s.get()); | |
System.out.println(s.get()); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment