title: Parallel looping with Java Streams?
body: <p>I have two lists. One shows number of successful attempts for each individual in a group of people for some game.</p>
  
  <pre><code>public class SuccessfulAttempts{
      String name;
      int successCount;
  }
  
  List&lt;SuccessfulAttempts&gt; success;
  </code></pre>
  
  <p>And total number of attempts for each individual.</p>
  
  <pre><code>public class TotalAttempts{
      String name;
      int totalCount;
  }
  
  List&lt;TotalAttempts&gt; total;
  </code></pre>
  
  <p>And I want to show the percentage success for each person in the group.</p>
  
  <pre><code>public class PercentageSuccess{
      String name;
      float percentage;
  }
  
  List&lt;PercentageSuccess&gt; percentage;
  </code></pre>
  
  <p>And assume I have populate first two lists like this.</p>
  
  <pre><code>success.add(new SuccessfulAttempts(Alice, 4));
  success.add(new SuccessfulAttempts(Bob, 7));
  
  total.add(new TotalAttempts(Alice, 5));
  total.add(new TotalAttempts(Bob, 10));
  </code></pre>
  
  <p>Now I want to calculate the percentage success for each person using Java Streams. So I actually need this kind of a result for the list <code>List&lt;PercentageSuccess&gt; percentage</code>.</p>
  
  <pre><code>new PercentageSuccess(Alice, 80);
  new PercentageSuccess(Bob, 70);
  </code></pre>
  
  <p>And I want to calculate them (Alice's percentage and Bob's percentage) in <strong><em>parallel</em></strong> (I know how to do sequentially using a loop). How I can achieve this with Java Streams (or any other simple way)??</p>