Search:

Type: Posts; User: andreas90

Search: Search took 0.07 seconds.

  1. Replies
    9
    Views
    1,570

    Re: Problems with ArrayList

    You just need to spend some time reading some basic tutorial on how to use ArrayList. You will find thousands if you just google it.

    Read again post #8.
    You need to use the ArrayList's add...
  2. Replies
    9
    Views
    1,570

    Re: Problems with ArrayList

    Contact.add(new Contact(fName, sName, street, town, partOnePC, partTwoPC));
    With this statement you call the static add method of the Contact class. Obviously, this is not your intention since there...
  3. Replies
    9
    Views
    1,570

    Re: Problems with ArrayList

    You should't use something because you were told so. You should try to understand why you need it.

    Can you at least explain what are you trying to do? We need more information to help you. Do you...
  4. Replies
    9
    Views
    1,570

    Re: Problems with ArrayList

    Since ContactList extends Contact, the first statement in ContactList's constructor should call the superclass (Contact) constructor with the keyword super. In other words, you need to pass the...
  5. Replies
    9
    Views
    1,570

    Re: Problems with ArrayList

    Hello 93tomh!
    Can you post the Contact class (especially the constructors)? Or better make a small program that executes and shows your problem?
Results 1 to 5 of 5