title: Change JLabel text with a for-loop
body: <p>I need help to change Jlabel texts that is a loop, I need to try something type:</p>
  
  <pre><code>String[] inputs = {"nickname0", "nickname1", "nickname2", "nickname3", "nickname4", "nickname5", "nickname6", "nickname7", "nickname8", "nickname9"};
              for(int i = 0; i&lt;9; i++) {
                  inputs[i].setText("exemple" + i);
              }
  </code></pre>
  
  <p>or like this: </p>
  
  <pre><code>for(int i = 0; i&lt;9; i++) {
              (inputs + i).setText("exemple" + i);
          }
  </code></pre>
  
  <p>but this methods dont work, anyone have solution?</p>