write method hasMidpoint that accept three integers as parameter ,and returns true if one of the numbers is the midpoint of the other two and returns false otherwise !
for example : the call hasMidpoint (3,7,5) return true because 5 is the midpoint of the other two
(3 and 7) .
1
Expert's answer
2012-10-26T10:06:25-0400
public static boolean hasMidpoing(int one, int two, int three) {
Comments
Leave a comment