Question: Write a program in java Steps: 1). Create a text file, and put the sentence this is a highly confidential message in it; 2). If

Write a program in java
Steps:
1). Create a text file, and put the sentence this is a highly confidential message in it;
2). If you want to display the sentence from the last character to the first character, what data structure should you use to store the sentence when you read the sentence from the text file one character at a time?
3). Read the sentence to the data structure one character at a time. Display the content of the data structure and ask the user to guess what it is if it is displayed in the right order from first character to last character;
4). Read the users guess and compare with the sentence in the correct order. Congratulate the user if his/her answer is correct. Ask the user to try again if the answer is incorrect.
Test your code and take screenshots. Submit the screenshots with your Java code

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!