Menu

[solved] – Question 73871

1. Write a java program that inputs a line of text and uses a stack to display the words of a sentence in reverse order. Input and output for your program should be as following.
Input: My name is DSA.

Output: DSA is name My.

Expert Answer


OR


Leave a Reply

Your email address will not be published. Required fields are marked *