/* inlining functions, and passing them to other functions. Can't have function pointers like you can in C in Java. Must create an interface, then instantiate the interface at run time. */ interface function // too bad, can't parametrize interface with type { int f(int x); } public class inline { // function to apply a "function" object to each element of an int array: public static void map(int[] A, function fun) { for(int i=0;i