Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a Java program that asks the user the file name of an input file. If the file doesn't exist, exit the program with an
Write a Java program that asks the user the file name of an input file. If the file doesn't exist, exit the program with an error message, otherwise, open the file. Ask the user enter another file name for the output file. If the file exists, display a message that the old content will be wiped out, if not, create a new file. Read in data line by line from the input file, convert all lowercase letters to uppercase letters and write to the output file. When done, output a message to screen displaying how many lines have been written
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started