public void add(person p) { if (first.p.name == null) { first = new PersonNode(p); } else { PersonNode curr = first; while (curr.hasNext()) { curr = curr.next; } curr.next = new PersonNode(p); } }
public void getPerson(String name) { PersonNode curr = first; }
public PersonLinkedList(person p) { first = new PersonNode(p); }
public PersonLinkedList() { first = new PersonNode(); }