Your code example works just fine. I added the following line to your test and it printed the colour as expected:
public static void main(String[] args) {
Computer a = new Computer();
System.out.println(a.getProcessor());
}
Prints blue
or red
as appropriate.