Comparing Colors
Suppose you are given an unknown color c
To check if c is red, use: if ( c.equals( Color.red ) ) …
Do not use if ( c == Color.red ) …since this comparison will always be false!
The reason is subtle: c and Color.red are distinct objects (although their values are equal)