title: How to invoke method after another method?
body: <p>Let's say that I have the following code:</p>
  
  <pre><code>Method myMethod = Entry.class.getDeclaredMethod("get" + criteria);
  entries.get(index).getPort();
  </code></pre>
  
  <p>I'd like to replace the getPort method with the reflected method "myMethod". How can I invoke a reflected method after another method? (entries.get(index) in this case)</p>
  
  <p>It's probably a really simple question, but I've searched everywhere and didn't really find an answer.</p>