title: Array of function pointers in Java
body: <p>I have read <a href="https://stackoverflow.com/questions/122407/whats-the-nearest-substitute-for-a-function-pointer-in-java">this question</a> and I'm still not sure whether it is possible to keep pointers to methods in an array in Java. If anyone knows if this is possible (or not), it would be a real help. I'm trying to find an elegant solution of keeping a list of <code>String</code>s and associated functions without writing a mess of hundreds of <code>if</code> statements.</p>
  <p>Cheers</p>