Searching for a reasonable way to do function pointers in Java and comparing it with 7 other languages