Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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. image text in transcribed
image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advances In Databases And Information Systems 14th East European Conference Adbis 2010 Novi Sad Serbia September 2010 Proceedings Lncs 6295

Authors: Barbara Catania ,Mirjana Ivanovic ,Bernhard Thalheim

2010th Edition

3642155758, 978-3642155758

More Books

Students also viewed these Databases questions

Question

2. Why has the conflict escalated?

Answered: 1 week ago

Question

1. How will you, as city manager, handle these requests?

Answered: 1 week ago