Menu

Need Java Please Please Read Help Needs Person Vive Needs Compare Two Names Using Get Set Q43883897

I need this in Java please

Please read it all and help needs to be for a person “Vive”,needs to compare two names using get and set method and needs tocheck for incorrect inputs. everything on here so far fails to dothis

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 Please read it all and help needs to be for a person “Vive”, needs to compare two names using…

OR