Search:

Type: Posts; User: ghostheadx

Search: Search took 0.15 seconds.

  1. Thread: Lab 14

    by ghostheadx
    Replies
    20
    Views
    2,584

    Re: Lab 14

    Alright so, as always, my mutators don't work. Here's my code:



    public class StreetAddress

    {
  2. Thread: Lab 14

    by ghostheadx
    Replies
    20
    Views
    2,584

    Re: Lab 14

    So now, hopefully I can get some setters working. Thanks.
  3. Thread: Lab 14

    by ghostheadx
    Replies
    20
    Views
    2,584

    Re: Lab 14

    Okay, so how's this for a start:




    public class StreetAddress{



    public String street;
  4. Thread: Lab 14

    by ghostheadx
    Replies
    20
    Views
    2,584

    Re: Lab 14

    I thought that declaring a variable essentially meant:



    int five = 5;


    It would store the number "5" in the data space, represented by 5, which is an integer. That's what my understanding...
  5. Thread: Lab 14

    by ghostheadx
    Replies
    20
    Views
    2,584

    Re: Lab 14

    I thought that you didn't declare fields variables in a constructor.

    --- Update ---

    @GregBrannon

    I just sort of thought that a constructor looked like this per-say:
  6. Thread: Lab 14

    by ghostheadx
    Replies
    20
    Views
    2,584

    Re: Lab 14

    public class StreetAddress{



    public String street;

    public String city;

    public String state;
  7. Thread: Lab 14

    by ghostheadx
    Replies
    20
    Views
    2,584

    Re: Lab 14

    I knew most of it was titled wrong, because I was sort of not focused on the titles. I actually tried to copy this guy's programming:

    Accessors and mutators in Java - YouTube

    I think that was a...
  8. Thread: Lab 14

    by ghostheadx
    Replies
    20
    Views
    2,584

    Re: Lab 14

    public class StreetAddress ()
    {
    public StreetAddress(){

    private String number;
    private String Street;
    private String city;
    private String zip;...
  9. Thread: Lab 14

    by ghostheadx
    Replies
    20
    Views
    2,584

    Lab 14

    Here's what I need to do for Lab 14:




    The StreetAddress class has this constructor:

    StreetAddress( String street, String city,
    String state, String zip );
Results 1 to 9 of 9