You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The program should print "null" to show that the inStack is empty but instead the program crashes when trying to access an element of the empty stack.