title: Fill ArrayList with colors for Android
body: <p>I want to create 2 ArrayList. One holding 16 colors, the other one holding 139.</p>
  
  <p>I have the list with colors (both RGB as 255,126,32 and Hex as 0xFFFF2552). I want to use the ArrayList to later pick random colors from.</p>
  
  <p>I've tried int[], that doesn't work. I've tried <code>ArrayList&lt;Integer&gt;</code> and <code>ArrayList&lt;Color&gt;</code>. My problem is; I don't understand how to add the colors to the ArrayLists.</p>
  
  <p>Thanks!!</p>
  
  <p>For now, I'm exploring this:</p>
  
  <pre><code>Color cBlue = new Color(0,0,255);
  Color cRed = new Color(255,0,0);
  
  ArrayList colors = new ArrayList();
  colors.add(cBlue);
  colors.add(cRed);
  </code></pre>
  
  <p>and so on...</p>
  
  <p>I really like <code>int[] colors = = new int[] {4,5};</code> because it's only one line of code... but how do I get colors in, to later on, pick from?</p>
  
  <p>or.. would it be better to store the colors in a strings.xml file and then fill the ArrayList from there? If so, how should I do that?</p>
  
  <p>Thanks!!</p>