0
/ 1.0
Write a function in Java that implements the following logic: Given three ints, a
, b
, and c
, return true if one of b
or c
is "close" to a...
Write a function in Java that implements the following logic: Given
three ints, a
, b
, and c
, return true if one of b
or c
is
"close" to a
(differing from a
by at most 1), while the other is
"far" from a
, differing from both other values by 2 or more. Note:
Math.abs(num)
computes the absolute value of a number.
Your feedback will appear here when you check your answer.