Created
February 25, 2016 06:48
-
-
Save Shamrock-Frost/29434f80af1f4b24a4c9 to your computer and use it in GitHub Desktop.
This file contains 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
@FunctionalInterface | |
interface Test { | |
public abstract void doThing(); | |
} | |
//Place where code would be run | |
List<Test> tests = new ArrayList(); | |
tests.add(() -> System.out.println("1")); | |
tests.add(() -> System.out.println("2")); | |
tests.add(() -> System.out.println("3")); | |
tests.add(() -> System.out.println("4")); | |
for(Test t : tests) t.doThing(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment