Next:
Java Queue
Up:
Java Stacks
Previous:
search() Method
Contents
empty()
Method
To check whether a stack is empty or not, we use the
empty()
method. For example,
Output