class CharListB { private char first; private CharListB next; CharListB(char ch,CharListB L) { first=ch; next=L; } public char head() { return first; } public CharListB tail() { return next; } }