Skip to content

Instantly share code, notes, and snippets.

@batmat
Created February 7, 2013 21:03
Show Gist options
  • Save batmat/4734146 to your computer and use it in GitHub Desktop.
Save batmat/4734146 to your computer and use it in GitHub Desktop.
JDK8 sample code (not working)
// 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