Write a class ContactInfo to store contact information for a person. It should have attributes for a person’s name, business phone, home phone, cell phone, email address, and home address. It should have a toString method that returns this data as a string, making appropriate replacements for any attributes that do not have values. It should have a constructor ContactInfo(aString) that creates and returns a new instance of the class, using data in the string aString. The constructor should use a format consistent with what the toString method produces. Using a text editor, create a text file of contact information, as described in the previous paragraph, for several people. Write a program that reads this file, displays the data on the screen, and creates an array whose base type is Contac
What will be an ideal response?
See the code in InvalidContactException.java, ContactInfo.java, ContactProgram.java. Input is in contacts.txt
Computer Science & Information Technology
You might also like to view...
In Windows, if you experience unreliable behavior, try a System Restore before doing a Windows Refresh
Indicate whether the statement is true or false
Computer Science & Information Technology
The ____________________ form layout places labels next to fields, and lists the fields in columns.
Fill in the blank(s) with the appropriate word(s).
Computer Science & Information Technology