Which of the following methods will return the smallest of three int values?
public static int smallest(int a, int b, int c) {
return Math.min(a, b) - c;
}
public static int smallest(int a, int b, int c) {
return Math.abs(a + b + c);
}
public static int smallest(int a, int b, int c) {
return Math.min(Math.min(a, b), c);
}
public static int smallest(int a, int b, int c) {
return Math.min(a, b, c);
}
Answers
Answered by
0
Explanation:
I think the easiest method is [c]
Similar questions