Search:

Type: Posts; User: Norm

Search: Search took 0.11 seconds.

  1. Replies
    14
    Views
    3,667

    Re: Writing a getColor() method

    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.
  2. Replies
    14
    Views
    3,667

    Re: Writing a getColor() method

    Take a look at the tutorial:
    Returning a Value from a Method (The Java™ Tutorials > Learning the Java Language > Classes and Objects)
  3. Replies
    14
    Views
    3,667

    re: Writing a getColor() method

    Do you have any specific questions?
Results 1 to 3 of 3