Results 1 to 2 of 2
  1. #1
    mrst30 is offline Member
    Join Date
    Apr 2013
    Posts
    2
    Rep Power
    0

    Question How do you code this?

    Coding a simple class in JAVA classed. Code has to inlcude the following.
    Variables (name, age, addressStreet, city, state, zip, country)
    Setter and Getter methods
    Example:
    public void setName(String name) {
    this.name = name;
    }

    public String getName() {
    return name;
    }

    Please help!!!

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,585
    Rep Power
    12

    Default Re: How do you code this?

    Closing. Duplicate of How do you code this?

    @OP: don't do this. Reply to Junk and continue the discussion in the original thread.

Similar Threads

  1. Replies: 16
    Last Post: 01-31-2012, 09:36 PM
  2. Replies: 3
    Last Post: 08-10-2011, 10:17 AM
  3. Replies: 0
    Last Post: 08-07-2011, 09:32 PM
  4. Replies: 0
    Last Post: 02-21-2011, 12:50 PM
  5. Replies: 1
    Last Post: 04-26-2007, 04:52 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •