Menu

Need Java Please Create Class Named Addressbook Following Field Names Firstname Middlename Q43855958

I need this in Java please

Create a class named AddressBook that has the following fieldnames:
firstName,

middleName,

lastName,

homeAddress,

businessPhone,

homePhone,

cellphone,

skypeId,

facebookId,

and personalWebSite.

Use appropriate data types to store the values for these fields inAddressBook objects.

Create appropriate get and set methods to retrieve and assignvalues to these names. For example, getMiddleName(viveAddressBook)should return the middle name of the person Vive. Similarly,vive.setPersonalWebsite(url) should set the personal website of theperson Vive to the specified URL object.

Using the get and set methods, create a comparison methodcompareNames(name1, name2) that compares the first, middle, andlast names of strings name1 and name2. Assume that name1 and name2follow the following format: “FirstName M. LastName”.

Test your program for correct, partially correct (e.g., namestring without the middleName), and incorrect inputs (e.g., phonenumber containing special characters).

Expert Answer


Answer to I need this in Java please Create a class named AddressBook that has the following field names: firstName, middleName, l…

OR