title: How to iterate simultaneously over two arrays using thymeleaf
body: <p>I have two arrays whose content I want to show in the same table (different columns). How can I iterate over the arrays using <code>index</code> or <code>th:each</code></p>
  
  <p>Here is what I want to achieve</p>
  
  <pre><code>&lt;table&gt;
      &lt;tr&gt;
          &lt;td&gt;List1Elm1&lt;/td&gt;
          &lt;td&gt;List2Elm1&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;List1Elm2&lt;/td&gt;
          &lt;td&gt;List2Elm2&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;List1Elm3&lt;/td&gt;
          &lt;td&gt;List2Elm3&lt;/td&gt;
      &lt;/tr&gt;
      &lt;tr&gt;
          &lt;td&gt;List1Elm4&lt;/td&gt;
          &lt;td&gt;List2Elm4&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>In this List1Elm1 is the 1st element of list 1.</p>