title: Java Question, how to get the value of a method from an unknown object
body: <p>I have lots of object defined in the system, perhaps 1000 objects,
  and some of them have this method:</p>
  
  <pre><code>public Date getDate();
  </code></pre>
  
  <p>Is there anyway I can do something like this:</p>
  
  <pre><code>Object o = getFromSomeWhere.....;
  
  Method m = o.getMethod("getDate");
  Date date = (Date) m.getValue();
  </code></pre>