// // Stack1.java // Array-based Stack: unsorted List, and operation - // "LIFO" (last in, first out) or "FILO" // public class Stack1 { private final int MAX = 50; // two instance variables private int[] info; private int length; // default constructor public Stack1() { length = 0; info = new int[MAX]; } public void push(int item) { info[length] = item; length ++; } public int pop() { int item = info[length-1]; length --; System.out.println(item + " was poped out.\n\n"); return item; } public int getLength() { return length; } public void Print() { System.out.println("\n\n(Bottom ---> Top)"); for(int i=0; i