Created
January 29, 2013 13:32
-
-
Save rch850/4664265 to your computer and use it in GitHub Desktop.
Java 8 の lambda で遊んでる
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
public class LifeAtTwitter { | |
public static void main(String[] args) { | |
getTweets().forEach(tweet -> { | |
System.out.println(tweet); | |
}); | |
} | |
static java.util.List<String> getTweets() { | |
return java.util.Arrays.asList("mukuri", "syussya", "meshi", "kitaku", "oyasu"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment