Question: JAVA Write a program that checks a text file for several formatting and punctuation matters. The program asks for the names of both an input
JAVA Write a program that checks a text file for several formatting and punctuation matters. The program asks for the names of both an input file and an output file. It then copies all the text from the input file to the output file, but with the following two changes: (1) any string of two or more blank characters is replaced by a single blank; (2) all sentences start with an uppercase letter. All sentences after the first one begin after either a period, a question mark, or an exclamation mark that is followed by one or more whitespace characters. Example:
textin.txt: this program processes. text files and creates! a new file?with * the following. textout.txt: This program processes. Text files and creates! A new file?with * the following.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
