Guest User

Untitled

a guest
Jun 24th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. import com.google.common.base.Function;
  2.  
  3. public class test {
  4.  
  5. static Integer test(Function<String, Integer> f) {
  6. return f.apply("1");
  7. }
  8.  
  9. public static void main(String[] args) {
  10. System.out.println(test(#(String s){ return Integer.parseInt(s);}) + 1);
  11. }
  12. }
Add Comment
Please, Sign In to add comment