public ArrayList<Person> people;
Is this how you would instantiate the people variable as a new empty ArrayList of Person objects?
ArrayList<Person> people = new ArrayList<Person>();
And is this how you would add newMember to the end of the list?
public void addItem(Person newMember){
people.add(newMember);
}
No
What it could(or should) look like:
private,Listinstead ofArrayListandthis.so you never make that mistake again: