/** * CharNode.java * * @author Mr J * @version 20050205 */ class CharNode { private char item; private CharNode next; // default constructor, sets fields to null public CharNode( ) { item = '\0'; // UNICODE 0 - the null character next = null; } // Second Constructor for a student record, assigns fields public CharNode(char ch, CharNode nx ) { setItem(ch); setNext(nx); } // accessor methods public char getItem() {return item;} public CharNode getNext(){return next;} // modifier methods public void setItem(char ch) {item = ch;} public void setNext(CharNode n){next = n;} }