Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

java 8 lambdas

Name: Anonymous 2012-09-21 18:05


List<String> names = Arrays.asList("Alice", "Bob", "Charlie", "Dave");
names
   .filter(e -> e.length() >= 4)
   .forEach(e -> { System.out.println(e); });



why aren't you part of the master race yet?

Name: Anonymous 2012-09-22 22:05

does java still require all code to be in it's own class and each class to be in it's own file? because if so, no amount of evolution can fix the language. OOP does not apply to all problems, and it is a waste of time to try to shiv all code within it.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List