나중에 들어온 데이터가 먼저 나가는 후입선출(LIFO)의 원칙에 따라 동작한다. 즉, 가장 최근에 저장된(push) 항목이 가장 먼저 제거(pop)된다. 이미지 출처 : https://www.programiz.com/dsa/stack#google_vignette
Stack<Integer> stack = new Stack<Integer>();
isEmpty()
peek()
pop()
push()
int search(Object o)