Question: I NEED HELP PLEASE!!! EXPERT in JAVA, output for stops after first name Write a program that asks the user for the names of two
I NEED HELP PLEASE!!! EXPERT in JAVA, output for stops after first name 

Write a program that asks the user for the names of two files. The first file should be opened for reading and the second file should be opened for writing. The program should read the contents of the first file, change all characters to uppercase, and store the results in the second file. The second file will be a copy of the first file, except that all the characters will be uppercase. Use the Notepad text editor to create a simple file that can be used to test the program. Please note that I will test your project using a file that I have created. NOTE: Be sure to provide specific instructions to the user on how to enter the file name as input (i.e. provide sample input to the user: "Enter the name of your first file in the format filename.txt."). 1 2e import java.util.Scanner; 3 import java.io.*; 19 Uppercase main(String[]) 4 5 U 11 14 15 6 public class uppercase! 7 { 80 public static void main(String[] args) 9 throws IOException 10 { String firstfile; 12 String secondfile; 13 try (Scanner keyboard = new Scanner(System.in)) { System.out.println("Enter first file name"); firstfile - keyboard.nextLine(); 16 File readFile = new File(firstfile); 17 Scanner inputFile = new Scanner(readFile); 18 System.out.println("Enter second file name"); 19 secondfile = keyboard.nextLine(); 29 Printwriter outputFile = new Printwriter(secondfile); while(inputFile.hasNext() 22 { 23 String line = inputFile.nextLine(); 24 outputFile.println(line.toupperCase(); 25 26 27 inputFile.close(); 28 outputFile.close(); 29 } 30 31 } 32 } 21 Problems @ Javadoc Declaration Console X terminated> Arinze Uppercase [Java Application] C:\Users\Windows 10 Pro\.p2\pool\plugins\org.eclipse.justj.openjdk.hotspot.jre.full.w Enter first file name Uppercase Exception in thread "main" java.io.FileNotFoundException: Uppercase (The system cannot find the file specified) at java.base/java.io.FileInputStream.opene (Native Method) at java.base/java.io.FileInputStream.open(FileInputStream.java:211) at java.base/java.io.FileInputStream.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
