Hi Java Experts,
I need help in understanding this.
This is my input from my text file: 1|John Jay Smith|1985-01-10|2010-05-10|2014-03-05|212-222-2233
So, I have to convert 1 to integer. Break John Smith into first name as John and Middle name as Jay Last name as Smith.
If no middle name is given then first is John and Last is Smith . Read 1985-01-10 as a date value . 2010-05-10 as another date value which could be null. 2014-03-05 as another date value which could be null. and at last 212-222-2233 as phone number.
Scanner sc = new Scanner (inFile);
String row= sc.nextLine();
I want to read this line of input and assign the value accordingly. How can I do that? Thanks for help