title: How to Iterate through two ArrayLists Simultaneously?
body: <p>I Have Two Array Lists, Declared as:</p>
  
  <pre><code>ArrayList&lt;JRadioButton&gt; category = new ArrayList&lt;JRadioButton&gt;();
  ArrayList&lt;Integer&gt; cat_ids = new ArrayList&lt;Integer&gt;();
  </code></pre>
  
  <p>Both of the these fields contain exactly, the Same No of Values, which are infact corresponding in Nature.</p>
  
  <p>I know I can iterate over one of the loops like this:</p>
  
  <pre><code>for(JRadioButton button: category)
  {
       if(button.isSelected())
       {
             buttonName = button.getName();
             System.out.println(buttonName);       
       }
  }
  </code></pre>
  
  <p>But, I would like to iterate over both the LISTS simultaneously. I know they have the exact same size. How do I Do that?</p>