Question: need help with this in java For this lab, you will use Java to implement a stack ADT using references. For the stack, you will

need help with this in java need help with this in java For this lab, you will use

For this lab, you will use Java to implement a stack ADT using references. For the stack, you will create a Node class. This class has two attributes; item of type char and another object reference next of type Node. You will also need to create another class called myStack. This class should be implemented using references. You will need to implement several methods, including: . . Push Pop Peek isEmpty Then the input/output interface of the program should be print your name in a reverse order. So if for example, your first name is "Sally", the input/output interface of the program should look something like the following: Please enter your first name: Sally This is your first name in a reverse order: yllas Note that "sally" is used an example, please use your first name. Variations on the wording are acceptable, if the user tries to pop from an empty stack, the program needs to print an alert, but not change the stack. Depending on how you structure your program, you may need more methods. Note: The Java packages have a stack template available, however, you should not use it or its push or pop operations for this assignment. They implement the stack differently than how we are going to do it

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!