Skip to content

Instantly share code, notes, and snippets.

@spullara
Created September 19, 2010 01:39
Show Gist options
  • Select an option

  • Save spullara/586265 to your computer and use it in GitHub Desktop.

Select an option

Save spullara/586265 to your computer and use it in GitHub Desktop.
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