package LinkedLists; // CustomerNode.java // // Demonstrates yet another self-referential record structure // in java. Used by Singtel Queue Applet // class CustomerNode { private String name; private String phone; private CustomerNode next; public CustomerNode() { name = null; phone = null; next = null; } public CustomerNode(String nm, String pn, CustomerNode nx) { setName(nm); setPhone(pn); setNext(nx); } // accessor methods public String getName() {return name;} public CustomerNode getNext() { return next; } public String getPhone() { return phone; } // modifier methods public void setName( String nm ) {name = nm;} public void setNext(CustomerNode n) { next = n; } public void setPhone(String ph) { phone = ph; } }