Question :
Suppose we decide to add a new operation to our Stack ADT called sizeIs, which returns avalue of primitive type int equal to the number of items on stack.
The method signature for sizeIs is public int sizeIs()
[1] Write the code for sizeIs for the class.
[2] Write the code for sizeIs for the class.