Ваши мнения, почему последний пункт не проходит?
package com.javarush.task.task04.task0419;
/*
Максимум четырех чисел
*/
import java.io.*;
import java.util.*;
public class Solution {
public static void main(String[] args) throws Exception {
//напишите тут ваш код
BufferedReader chitalka = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(chitalka.readLine());
int b = Integer.parseInt(chitalka.readLine());
int c = Integer.parseInt(chitalka.readLine());
int d = Integer.parseInt(chitalka.readLine());
if (a > b && a > c && a > d){
System.out.println(a);
}
else{
if (b > a && b > c && b > d){
System.out.println(b);
}
else{
if(c > a && c > b && c > d){
System.out.println(c);
}
else{
if(d > a && d > b && d > c){
System.out.println(d);
}
}
}
}
}
}