подскажите или направьте
package com.javarush.task.task04.task0419;
/*
Максимум четырех чисел
*/
import java.io.*;
import java.util.*;
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());
System.out.println(max(max(a,b),max(c,d)));
}
int max (int a, int b) {
if(a>=b)
return a;
else
return b;
}
}