title: How to join 2 lists in Java-8 such that element at same indexes from the 2 list come together in the resultant list
body: <p>I have 2 lists <code>codeList</code> and <code>nameList</code> both having <code>String</code> elements.</p>
  <pre class="lang-java prettyprint-override"><code>    codeList = [&quot;1&quot;, &quot;2&quot;, &quot;3&quot;];
      nameList = [&quot;One&quot;, &quot;Two&quot;, &quot;Three&quot;];
  </code></pre>
  <p>I want to combine these in such a way that the elements on same index come together in resultant <code>String</code> separated with <code>|</code>:</p>
  <pre class="lang-java prettyprint-override"><code>&quot;1{One} | 2{Two} | 3{Three}&quot;
  
  </code></pre>
  <p>Is there any way of directly getting the resultant list or String from the 2 list itself using Java 8</p>
  <p>I am able to achieve this by using a Map but not list.</p>