public interface MyStack<Item> extends Iterable<Item>
boolean
isEmpty()
Item
pop()
MyStack<Item>
push(Item item)
int
size()
forEach, iterator, spliterator
MyStack<Item> push(Item item)
Item pop() throws Exception
Exception
boolean isEmpty()
int size()
Copyright © 2022. All rights reserved.