Update Friend.java

Update friend:
fixed output

Input:
Rutgers

Output:

jane|y|rutgers
bob|y|rutgers
sergei|y|rutgers
kaitlin|y|rutgers
aparna|y|rutgers
sam|y|rutgers



jane-->kaitlin-->bob-->sam-->
bob-->jane-->
sergei-->aparna-->
kaitlin-->jane-->
aparna-->sergei-->
sam-->jane-->