title: Any Method into Parameterlist?
body: <p>I have a problem, that I want to solve, but I dont have the knowledge to do it yet.</p>
  
  <p>Is there a possibility I can put any Method into the parameter list anytime?</p>
  
  <p>For Example:</p>
  
  <pre><code>public void goThroughArray(anyMethod()){
  for (int i = 0; i&lt;array.length;i++){
      anyMethod();
  }
  
  public int[] copyArray(int[]arrayName2){
   arrayName1[i] = arrayName2[i];
  }
  
  //in main
  goThroughArray(copyArray(int[]arrayName);
  </code></pre>
  
  <p>Is that possible?</p>