title: Getting / Searching in array
body: <p>How can I get the value of int &quot;icon&quot; from the Int values array with an example:</p>
  <p>2 = R.drawable.ic_blue?</p>
  <p>or: how to get: R.drawable.ic_blue? knowing id: 2?</p>
  <pre><code>public class iconsList {
  
   public class IntValues {
       public int id;
       public int icon;
       public IntValues(int id, int icon){
          this.id=id;
          this.icon=icon;
       }
   }
  
   IntValues[] icons = new IntValues[] {
       new IntValues(0, R.drawable.ic_default),
       new IntValues(1, R.drawable.ic_red),
       new IntValues(2, R.drawable.ic_blue),
   };
  
  }
  </code></pre>