public static double newPriority(double remote,double stored,int commonFriends,int myFriends){
  return Math.max(fractionOfFriendsPriority(remote,commonFriends,myFriends),stored);
}

public static double newPriority ( double remote , double stored , int commonFriends , int myFriends ) { return Math . max ( fractionOfFriendsPriority ( remote , commonFriends , myFriends ) , stored ) ; }
given an old priority and the number of friends in common , calculate the value of the new priority of a message .
