title: How do I put a method as a parameter in a method call?
body: <p>I'm trying to write a method in java that passes in another method as a parameter.</p>
  
  <p>This is the method call in main:</p>
  
  <pre><code>    Functions.print("total",Functions.compute(scoreArray),Functions.find(scoreArray));
  </code></pre>
  
  <p>So far i have this as the method signature:</p>
  
  <pre><code>    public void print(String str, ...)
  </code></pre>
  
  <p>I have the compute and find methods already written. I don't know how to input them as parameters.</p>