SOLVED:a Friend class that holds the first name, last name and hometown and the traditional methods

49.99 $ 25.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: . rar solution files instantly, after Payment

Description

5/5 - (1 vote)

Use Graph to maintain a network of FriendsCreate and use a generic classSocial networks are everywhere! They connect people with other people. There is an internet meme called “The Six Degrees of Kevin Bacon”, which describes how movie actors are connected, directly or indirectly, with Kevin Bacon. Surprisingly, very short chains exist between any pair of actors, even obscure ones. For more information, see The Oracle of Kevin Bacon.You will be creating an application to maintain a network of friends. Follow the interfaces, the below specifications, and the JUnit test files.Data Element – Friend (Vertex)Create a Friend class that holds the first name, last name and hometown and the traditional methods (constructors, getters/setters, toString, etc.). It will implement the Comparable interface. This is the class header:public class Friend implements Comparable