In the ArrayStack class, write Java code for the following questions. public class ArrayStack { private Object [
Posted: Mon Jul 11, 2022 9:55 am
questions. public class ArrayStack { private Object [] stack; private int topIndex; private static final int DEFAULT_MAX_SIZE = 100; public ArrayStack() { } public ArrayStack (int maxSize) { } public void push (Object newEntry) { } public Object pop() {-} public Object peek () { } } public boolean isEmpty() ( - ) } // end ArrayStack a) Write Java code for push method. b) Write Java code for pop method. Write Java code for peek method. c)
<Stacks>In the ArrayStack class, write Java code for the following