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

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 Programming Questions!