Example 12
Reverse Sentence
Create a class that builds a stack for char elements. Using this stack, create the GUI shown below. When the Reverse button is clicked, create a stack array for the number of chars in the input text field. Push each character onto the stack. Once all characters have been pushed to the stack, pop the characters off the stack and display the result in the output text field.
