import javabook.*; class CharList { private CharNode head; public CharList() { head = null; } public void insert( char ch ) { CharNode node = new CharNode( ch ); node.next = head; head = node; } public void print() { CharNode current = head; while( current != null ) { System.out.print( current.data ); current = current.next; } } public void recPrint() { printTail( head ); } public void printTail( CharNode node ) { if( node != null ) { System.out.print( node.data ); printTail( node.next ); } } }