Question: in java Please be quick Find the errors in the following code: 1. public class ReadFile { 2. public static void main(String[] args) { 3.

Find the errors in the following code: 1. public class ReadFile { 2. public static void main(String[] args) { 3. Scanner input File = new Scanner (file); 4. while (inputFile.hasNext()) { 5. String str = inputFile.nextLine(); 6. System.out.println(str): 7. 8. inputfile.close(); 9. 10.)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
