Question: MyStack.java Implement a stack using linked lists data structure. Implement your own linked list. You cannot use Java's java.util.LinkedList. pop0: returns and removes the last

MyStack.java Implement a stack using linked lists data structure. Implement your own linked list. You cannot use Java's java.util.LinkedList. pop0: returns and removes the last value on the stack push(String item): Push a given value onto the stack .isEmpty0: returns true or false depending on if the stack is empty printStack0: prints the items on the stack to console . Handles errors for all possible edge cases (i.e. doesn't throw an unhandled exception to the user) MyStack(String[] list): constructor which creates the stack with the items in list on the stack. So if list had {"a", "b", "c"} the stack would look like: "c" on top of "b" on top of "a
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
