Created
February 7, 2013 21:03
-
-
Save batmat/4734146 to your computer and use it in GitHub Desktop.
JDK8 sample code (not working)
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
// JDK8 sample (not working) with java[c] 1.8.0-ea downloaded on the 06 of february, 2013 | |
import java.util.*; | |
public class Main | |
{ | |
public static void main(String[] args){ | |
List<String> list = new ArrayList<>(); | |
list.add("pof"); | |
list.add("pouf"); | |
list.add("paf"); | |
list.add("pif"); | |
list.add("bleh"); | |
list.stream().map( s -> s.substring(0,1)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment