Question: Fixing the code based on what the red comments ask. public class FilePractice public static String[Il] genFile) Scanner in-new Scanner(System.in); System.out.println(Enter file name:; String fileName-in.nextLine0:

Fixing the code based on what the red comments ask.  Fixing the code based on what the red comments ask. public
class FilePractice public static String[Il] genFile) Scanner in-new Scanner(System.in); System.out.println("Enter file name:";

public class FilePractice public static String[Il] genFile) Scanner in-new Scanner(System.in); System.out.println("Enter file name:"; String fileName-in.nextLine0: Create an ArrayList of Strings from the file name entered ArrayList alines /* Create a 2D array the that will hold all the information. String[Il result new String[4]0 This loop should run and capture all of the data/ int i-2; while (i readFile(String filename) File temp-new File(filename); /*Create a Scanner object to read in our file Scanner iFile-new Scanner(temp)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!