Search:

Type: Posts; User: GregBrannon

Search: Search took 0.10 seconds.

  1. Replies
    3
    Views
    1,150

    Re: Intro to Java problem! Please help!

    I would also be consistent in variable naming. If the variable name is 'city', the setter signature should be:

    public void setCity( String city )

    and the getter signature should be:

    public...
  2. Replies
    3
    Views
    1,150

    Re: Intro to Java problem! Please help!

    The purpose of a 'setter' is to provide an interface to the outside world to set something, usually a variable in the class, to the parameter passed to the method. You currently set most variables...
Results 1 to 2 of 2