Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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);
- }
- }
Add Comment
Please, Sign In to add comment