Java OOP PLEASE DO IT URGENT A social networking website hires you to meet the following requirements: User can create their profile User can check for mutual friends User can add new friends User can...



Java OOP


PLEASE DO IT URGENT



A social networking website hires you to meet the following requirements:



  1. User can create their profile

  2. User can check for mutual friends

  3. User can add new friends

  4. User can delete friends

  5. Display user’s profile




Solution Guidelines:



Create a class Profile having name, emailId, city , country, friendlist[] ( Keep the fields private)



Profile class will contain following methods:



  • createProfile(String name , String emailId, String city,


String country): allow user to set his information



  • addFriends(Profile profile): sends request, if a person


accepts the  request add the person object into friendlist[]



Note:
Achieve Method Overloading keep the parameters as (Profile profile , String Message) giving Access to user to send request with a personalized message.



  • removeFriend(Profile profile):can remove a friend from


the friendlist



  • showFriends(): display the friendlist

  • search(Profile profile):searches for profile in the list if it


 exists returns true else return false



  • checkMutualFriends(Profile profile): returns an array of


the common friends



Jun 04, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here