How do I read elements from to lists alternately?
<p>Hi I have 2 list defined:</p>

<pre><code>ArrayList&lt;JLabel&gt; questionsList = new ArrayList&lt;JLabel&gt;();
ArrayList&lt;JRadioButton&gt; answersList = new ArrayList&lt;JRadioButton&gt;();
</code></pre>

<p>I try to read questions and answers in format like that:</p>

<pre><code>1st Question 
  answer1
  answer2

2nd Question 
  answer1
  answer2
etc.
</code></pre>

<p>So 1st question is read from list <strong>questionsList</strong> then I want to read from another list <strong>answersList</strong> all answers to that question and etc.</p>

<p>In questionsList I read data from mysql and they are saved in JLabels in format like: <br />
1. Question one<br />
2. Question two<br /> etc</p>

<p>In answersList I read data from mysql and they are saved in JRadioButtons in format like: <br />
answer1<br /> 
answer2<br />
etc</p>

<p>My code so far:</p>

<pre><code>    int height = 0;

        for(int i1 =0; i1&lt;questionsList.size(); i1++)
        {   
              client.insideFillPollPanel.add(questionsList.get(i1)).setBounds(20, 20+150*i1, 480, 14);

            height = 20+150*i1;  

            for(int i2 =0; i2&lt;answersList.size(); i2++)
            client.insideFillPollPanel.add(answersList.get(i2)).setBounds(20, 50+30*i2, 480, 14);



        }
</code></pre>

<p>How do i solve it to be display like 1st format I showed so question then asnwers question and asnwers?</p>
