title: Setting text of JLabel with an array/loop
body: <p>How can I set the text of a JLabel with a loop? For example:</p>
  
  <pre><code>String cur[]= {"A","B","C"};
  JLabel lblA,lblB,lblC;
  
  for(i=0;i &lt; cur.length;i++){
    lbl+cur[i].setText("something");
  }
  </code></pre>
  
  <p>what should go in the "lbl+cur[i]" part so it sets the text of the JLabels?</p>
  
  <p>Thanks</p>