구조 LIFO(선입후출) 구조. * 스택 포인터 * 스택 public class stack { int top = -1; final Object[] stack; } 생성자 스택의 사이즈 설정 public class stack { // 생성자 // Set the Size of the Stack public stack(){ this.stack = new Object[10]; } public stack(int stackSize){ this.stack = new Object[stackSize]; } } 기능 1. 스택의 데이터가 가득 차있는지 확인하는 기능. 2. 스택의 데이터가 비어 있는지 확인하는 기능. 3. 스택에 데이터를 추가하는 기능. 4. 스택에 있는 데이터를 빼는 기능. 5. 스택에 있는 데이터를 확..