Question: In a class named ReadAndEditFile.java, use the following prompt to get the fileName of the input file from the User: What is the name of
In a class named ReadAndEditFile.java, use the following prompt to get the fileName of the input file from the User:What is the name of your file?
If the File doesnt exist, do not crash, but instead display File Not Found fileName
and repeatedly prompt until the user has entered a valid file name.
If the File exists, read from the File.
Capitalize the first letter in the file and capitalize the st letter after every period and correct the spacing by removing any duplicate spaces so that there is only space between words.
Write the modified output to a file named HomeworkOutputtxt
make sure it can pass this unit test :Unit test
Your output
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
