Author | Message |
---|---|
dliang
Posts: 35
|
Posted 23:02 Oct 26, 2019 |
Professor Keenan, I confused the part "During the creation of a new person to add to the database, one thing you will need to ask for is the list of phone numbers. The user should enter a phone number in the form "555-555-5555", a string with the parts of the number separated by a hyphen. If the string entered does not follow the correct format, you should throw a" The user should enter a phone number in the form "555-555-5555", so does that mean we should change the data field of the PhoneNumber class. |
kknaur
Posts: 540
|
Posted 08:17 Oct 27, 2019 |
Your program should accept a phone number in the requested format, but you should still store it the same way by separating the area code, prefix and suffix. |
dliang
Posts: 35
|
Posted 00:05 Oct 29, 2019 |
I tried to add additional information(GPA) of Student in the .csv format, I used the parseDouble(token[5]) , which it stores "3.25", but my program print out this exception. Exception in thread "main" java.lang.NumberFormatException: For input string: "3.25"" |