assign a unique color to a array number in java : <p>hi guys im new to programming this is my code </p>

<pre><code>for (int i = 0; i &lt; V; i++)
        System.out.print(value[i] +" ");
    System.out.println();
</code></pre>

<p>value of "i" are numbers , instead of printing value of "i" I want to print a unique color for each value for example if this is the value: "1 2 1 1 3"
i want to print: "red blue red red green" 
how can i do this?</p>
