Что не так?Вроде пытался все условия выполнить.
Среднее из трех чисел
if(a>b&&a<c)
System.out.println(a);
разве не это?
package com.javarush.task.task04.task0441;
/*
Как-то средненько
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine();
String s2 = reader.readLine();
String s3 = reader.readLine();
int a = Integer.parseInt(s);
int b = Integer.parseInt(s2);
int c = Integer.parseInt(s3);
if(a==b&&a==b&a==c) {
System.out.println(a);
}
else if(a==b){
System.out.println(a);
}
else if(a>b && a>c) {
System.out.println(a);
}
else if (b>a &&b>c) {
System.out.println(b);
}
else if(c>a && c>b) {
System.out.println(c);
}
else if(a>b && a<c){
System.out.println(a);
}
else if(b>a && b<c){
System.out.println(b);
}
else if (c>a && c<b){
System.out.println(c);
}
}
}