Question: Implement a class called Reverse that uses a stack to output a set of elements input by the user in reverse order. These should be
"Implement a class called Reverse that uses a stack to output a set of elements input by the user in reverse order."
- These should be elements of arbitrary type (e.g., characters, strings, integers). However, you don't need to mix types -- you can have separate stacks for each type.
- You canNOT use the Java built-in stack for this program.
- Likewise, you canNOT use the built-in Java ArrayList class.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
