Господа и дамы, почему "missing return statement" в median? Должен же возвращать ?
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(reader.readLine());
int b = Integer.parseInt(reader.readLine());
int c = Integer.parseInt(reader.readLine());
System.out.println(median(a, b, c));
}
public static int median(int a, int b, int c) {
if ((a > b && b > c) || (b < c && b > a))
return b;
if ((a < b && a > c) || (a > b && a < c))
return a;
if ((c > a && c < b) || (c < a && c > b))
return c;
if (a == b & a == c)
return a;
}
}