How is the color defined?
As a String: "RED"
or as a Color object: Color.RED
Decide which way that a color is defined, then you'll be able to write code to check the color.
Type: Posts; User: Norm
How is the color defined?
As a String: "RED"
or as a Color object: Color.RED
Decide which way that a color is defined, then you'll be able to write code to check the color.
Take a look at the tutorial:
Returning a Value from a Method (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
Do you have any specific questions?