title: How can I create multiple images in an array in java using a for statement?
body: <p>I wish to link to the 52 card images to an array, but without adding them individually. I was thinking something like creating an array and using a piece of code something like this.</p>
  
  <pre><code>Image[] card;
  card = new int[52];
  for (int c = 1; c&lt;=52;c++)
  {
      card[c] = 
  }  
  </code></pre>
  
  <p>I'm not sure how to proceed, but the cards in the file are labelled 1-52 so I figured that would be an easier way(and a better way to impress my teacher) to create the card values. I thnk I might also have to change the ranks system and use that as well. I'm using slick2d for the graphics.</p>
  
  <p>How can I use that piece of code(or a different piece of code) to assign the images to a variable?</p>