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...
Type: Posts; User: andreas90
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...
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...
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...
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...
Hello 93tomh!
Can you post the Contact class (especially the constructors)? Or better make a small program that executes and shows your problem?