Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Using multiple arrays (matching the data type) you will load theinformation stor

ID: 3614783 • Letter: U

Question

Using multiple arrays (matching the data type) you will load theinformation stored in the CSV file.
The user will be able to change the person’s first name giventhe last name.
You will save the file WITH THE CHANGED NAME overwriting theoriginal CSV file.

Here is content of CSV fileFirst
Name,Last Name,eMail Address,Birth Year,Birth Month,BirthDay,University
John,Smith,jsmith@yahoo.com,1956,12,25,TU University
Michael,Carrol,mcarrol@yahoo.com,1986,7,4,MN College
Adams,Samuels,asamuels@msn.com,1994,11,26,South Park University
Sam,Andrew,sandrew@verizon.com,1973,12,14,US University
Randy,Otton,rotton@live.com,1992,9,21,JH University
Mary,Wesly,mwesly@yahoo.com,1978,4,5,MS University
Michelle,Reges,mregesr@yahoo.com,1945,1,4,
Marty,Clinton,mclinton@comcast.com,1996,8,14,South University


Explanation / Answer

please rate - thanks hope this is what you're looking for import java.util.*; import java.io.*; public class untitled {static int i; public static void main(String[] args)throwsFileNotFoundException {String [] first=new String[20]; String [] last=new String[20]; String [] mail=new String[20]; String []univ=new String[20]; String [] part=new String[7]; String input; int[] year=new int[20]; int[] month=new int[20]; int[] day=new int[20]; int count=0; Scanner in=new Scanner(new File("input.txt")); Scanner kb=new Scanner(System.in); while(in.hasNext())     {i=0;     input =in.nextLine();    first[count]=part(input,',');    last[count]=part(input,',');    mail[count]=part(input,',');    year[count]=Integer.parseInt(part(input,','));    month[count]=Integer.parseInt(part(input,','));    day[count]=Integer.parseInt(part(input,','));    univ[count]=part(input,'');     count++;     } System.out.println("first Last eMail Address   Birth Year Birth Month Birth Day University ");          for(i=0;i
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote