import java.util.EmptyStackException; public class StackOfChars { //Data private char[] items; private int top; //Constructors public StackOfChars() { ... } public StackOfChars(int n) { ... } //Public methods public boolean isEmpty() { ... } public boolean isFull() { ... } public void push(char x) throws FullStackException { ... } public char pop() throws EmptyStackException { ... } public char top() throws EmptyStackException { ... } public int size() { ... } public int capacity() { ... } public void clear() { ... } }