в чем ошибка?
package com.javarush.task.task04.task0419;
import java.io.BufferedReader;
import java.io.InputStreamReader;
/*
Максимум четырех чисел
*/
public class Solution {
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());
int d = Integer.parseInt(reader.readLine());
if(max(a, b) <= max(c, d)){
System.out.println(max(c, d));
} else System.out.println(max(a, b));
public static int max(int a, int b){
if (a <= b){
return b;
} else return a;
}
}
}