Question: Write a flowchart for this process: private static void readFile(Scanner in, String[] team, String[] year) { //initializes the int i as 0 int i =

Write a flowchart for this process:

private static void readFile(Scanner in, String[] team, String[] year) { //initializes the int i as 0 int i = 0; //initializes the in current year to start at 1903 int currentYear = 1903;

//reads all the lines of the file while(in.hasNextLine()) { team[i] = in.nextLine(); //if statement that changes the years from 1904 and 1994 to bascially be skipped by incrementing them by 1 if(currentYear == 1904 || currentYear == 1994) currentYear++; year[i] = String.valueOf(currentYear); i++; currentYear++; } }

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!