Created
September 19, 2010 01:39
-
-
Save spullara/586265 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 com.google.common.base.Function; | |
| public class test { | |
| static Integer test(Function<String, Integer> f) { | |
| return f.apply("1"); | |
| } | |
| public static void main(String[] args) { | |
| System.out.println(test(#(String s){ return Integer.parseInt(s);}) + 1); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment