title: Compare elements in two ArrayList and merge
body: <p>Second question of the day :)</p>
  
  <p>I have two ArrayLists containing data from two different Json APIs like:</p>
  
  <p><strong>coinList</strong></p>
  
  <pre><code>coinList = new ArrayList&lt;&gt;();
  priceLIst = new ArrayList&lt;&gt;();
  
      coinList: [{coin=Litecoin, confirmed=0.00}, {coin=Bitcoin, confirmed=0.00}, {coin=Zcoin, confirmed=0.00}]
  </code></pre>
  
  <p><strong>priceList</strong></p>
  
  <pre><code>priceList: [{coin=Bitcoin, price=1000}, {coin=Litecoin, price=1000}, {coin=Zcoin, price=1000}]
  </code></pre>
  
  <p>Is there a way to add the "price" for the second list to the first one where indexes <strong>coin</strong> match? Like, Bitcoin price to the Bitcoin in the first list and so on? The coins are in different orders in each list, but are formated the same. The idea would be to end up with a list like:</p>
  
  <pre><code>mergedList = new ArrayList&lt;&gt;();
  
      mergedList: [{coin=Litecoin, confirmed=0.00, price=1000}, {coin=Bitcoin, confirmed=0.00, price=1000}]
  </code></pre>
  
  <p>Obviously, the data in the lists is for ilustration purposes only :P The real lists contain a few more things for each coin in the first list, but, unless I'm much mistaken, that should not matter.</p>
  
  <p>Hopefully this makes sense. I'm very new to this stuff, so any help would be appreciated, especially very <em>noob</em> friendly help! :)</p>
  
  <p>Thanks!</p>