Created
February 12, 2016 14:41
-
-
Save skylerto/823cbff8f2cdaf936418 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
import java.util.*; | |
public class Test { | |
public static void main(String[] args){ | |
List<Integer> numbers = Arrays.asList(1,2,3,4,5); | |
/* Lambda Functions, figures out the type */ | |
// numbers.forEach((val) -> { | |
// System.out.println(val); | |
// }); | |
/* Method references */ | |
numbers.forEach(System.out::println); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment