title: Call a method for List in parallel?
body: <p>I must iterate over an list and call for every object a method, but in parallel. After the loop, there other statements, which must wait for the parallel method invocations. How can I do that in JAVA? </p>
  
  <pre><code>public void a(List&lt;Object&gt; list) {
      for(Object o : list) {
          asynchMethod(o); // this n method call must run in the same time
      }
  
      // wait for all asynchMethod result
      /**
       * ...other statements
       */
  }
  
  private void asynchMethod(Object o) {
      // some code
  }
  </code></pre>