title: Java - toString to Colour
body: <p>I have been trying to work this out all day.</p>
  
  <p>Basically I have made a for loop which adds entries into an arraylist. One of the entries is a "Colour" varible. I have used the <code>random.nextInt</code> to create new values for the red, green and blue parts of the colour constructor. I have also set a <code>toString</code> method so I can see the values going into the arraylist. </p>
  
  <p>Problem is:</p>
  
  <p>When printing out I get  :  <code>java.awt.Color[r=248,g=103,b=53]</code></p>
  
  <p>and I understand why that is so, I'm just wondering how I can change that so the output says the word "orange" or "green" or "purple" depending on what the random rgb values are. </p>
  
  <p>I looked on here and I found that I could possibly use the <code>getRGB</code> method and parsing and thats where I get stuck... any help would be great :)</p>