Указывает, что условия не выполняются, хотя при проверке руками все ок.
package com.javarush.task.task04.task0419;
/*
Максимум четырех чисел
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String one = reader.readLine();
String two = reader.readLine();
String three = reader.readLine();
String four = reader.readLine();
int a = Integer.parseInt(one);
int b = Integer.parseInt(two);
int c = Integer.parseInt(three);
int d = Integer.parseInt(four);
int ab = Math.max(a, b);
int cd = Math.max(c, d);
int max = Math.max(ab, cd);
if(a == b)
System.out.println(a);
else if(a == c)
System.out.println(a);
else if(b == c)
System.out.println(b);
else
System.out.println(max);
}
}