public static int max int int int int max if max max if max max return

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
public static int max(int a, int b, int c) {
int max = a;
if (max < b) {
max = b;
}
if (max < c) {
max = c;
}
return max;
}
public static int min(int a, int b, int c) {
int min = a;
if (min > b) {
min = b;
}
if (min > c) {
min = c;
}
return min;
}
public static void main(String[] args) throws Exception {
input();
int mid = nNum1 + nNum2 + nNum3 - max(nNum1, nNum2, nNum3) - min(nNum1, nNum2, nNum3);
System.out.println(mid);
}