title: How to put images in an array in Java?
body: <p>I'm making an app, and I want to implement a feature where an image is shown accordingly to which fragment is open.</p>
  
  <p>I've 9 images I want to put in an array. I've made a String array where I used it like this:</p>
  
  <pre><code>String [] text = new String [5];
          text[0] = "hello";
          text[1] = "hey";
          ....
  </code></pre>
  
  <p>I want to do the same for the images I've. I've put the images in the mipmap folder. In a JFrame ImageIcon can be used for this, but what about in Android?</p>