Question: what do i do here try myFile = new Scanner(aFile); numRecs = myFile.nextInt(); recCounterRead = true; //This is where you instantiate the array of Student

what do i do herewhat do i do here try myFile = new Scanner(aFile); numRecs =

try myFile = new Scanner(aFile); numRecs = myFile.nextInt(); recCounterRead = true; //This is where you instantiate the array of Student objects, and / /where you use a counter loop, using numRecs as number of time to loop, //to read all the records in the input file, and //create a Student object per record, to place in the global array of Student objects //Call a method that does them. 1/When this method successfully ends, the array of Student objects should be populated. catch (FileNotFoundException e) throw new FileNotFoundException ("The file " + fileName + " was not found."); catch (InputMismatchException e) // Check which input mismatch occurred: //Use a flag to determine if it is for non-numeric rec counter OR // non-numeric GPA catch (BadDataException e) //this exception doesn't have to be caught here, since it is being caught in main. // You can delegate the BadDataException back to main throw new BadDataException(e.getMessage()); catch (NoSuchElementException e) catch (Exception e)

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!