Fill ArrayList with colors for Android
问题 I want to create 2 ArrayList. One holding 16 colors, the other one holding 139. 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. I've tried int[], that doesn't work. I've tried ArrayList<Integer> and ArrayList<Color> . My problem is; I don't understand how to add the colors to the ArrayLists. Thanks!! For now, I'm exploring this: Color cBlue = new Color(0,0,255); Color cRed = new Color(255,0,0); ArrayList