Question: >>>>>JAVA FILES>>>>>> -http://ksuweb.kennesaw.edu/~bsetzer/1302sp18anoc/output/assignments/supplement/Stack.java -http://ksuweb.kennesaw.edu/~bsetzer/1302sp18anoc/output/assignments/supplement/myTest2.java 2 Program The goal is part to implement Stack ADT using the techniques of the linked-list implementation from Program 1 above.

 >>>>>JAVA FILES>>>>>> -http://ksuweb.kennesaw.edu/~bsetzer/1302sp18anoc/output/assignments/supplement/Stack.java -http://ksuweb.kennesaw.edu/~bsetzer/1302sp18anoc/output/assignments/supplement/myTest2.java 2 Program The goal is part to

>>>>>JAVA FILES>>>>>>

-http://ksuweb.kennesaw.edu/~bsetzer/1302sp18anoc/output/assignments/supplement/Stack.java

-http://ksuweb.kennesaw.edu/~bsetzer/1302sp18anoc/output/assignments/supplement/myTest2.java

2 Program The goal is part to implement Stack ADT using the techniques of the linked-list implementation from Program 1 above. Use the files Stack java and myTest2.java to begin. Put these in the package program2. Using the code in class LinkedList java as a guide, develop a new class, called stack,java, to implement stack operations: * Push the character 'ch' on top of the stack. public void push(char ch) *Pop the top character on the stack and return it. If the stack is empty, throws an illegalstateException * @return Element that was on top of the stack. public char pop() * Return the element on top of the stack without : If the stack is empty throws an IllegalStateException. * @return Element currently on top of the stack. changing the stack. public char peek () Returns the number of elements in the stack. @return Number of elements in the stack. public int size) * Returns true if, and only if, the stack is empty. : ereturn true iff the stack is enpty public boolean isEmpty() Next, similarly to Program 1, add code to MyTest2 to test each method you have implemented. Submit

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!