Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Use Java Please... Alice is going to create a notebook including the profile of all her friends. For each of her friends, she would like
Use Java Please...
Alice is going to create a notebook including the profile of all her friends. For each of her friends, she would like to keep first-name, last-name, cell number, and birthdate (month and day). At the beginning, she doesn't know how many spaces she should reserve for recording her friends, so she gradually inputs her friends' information into it. Please help her by first creating a Java class, called Person, with the required information from description above, along with any required setter/getter methods. (10 points) Then create, a Java class, called Friends List, that keeps the list of some persons as someone's friends, using the Person class above, and performs the required operations, such as add new friends, delete/ modify an existing one, return the list of her friends sorted by last-names, report the number of her friends, report the list of her friends who born in a given month sorted by their day of birth, and report the list of her friends who born in a given day of a month, sorted by their last-names. She also needs to get the cell number of a friend by giving her/his first-name and last-name. (25 points) Create a tester class, called MyFriends, to test the Friend List class by creating a new object of this class, adding some friends, modifying and deleting some existing friends, retrieving and printing all friends, retrieving and printing the list of friends who born in a given month, retrieving and printing the list of friends who born in a given day of a month, and finding the cell number of an existing friend by giving her/his first-name and last-name. Also, create a separate copy of the Friend List object you have already created, and remove all friends with first-name "Shane" from the new object. (15 points) Java file names: Person.Java, FriendList.java, and My Friends.javaStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started