une idée?
package fr.codegym.task.task04.task0419;
/*
Le plus grand de quatre nombres
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader saisie = new BufferedReader(new InputStreamReader(System.in));
int a = Integer.parseInt(saisie.readLine());
int b = Integer.parseInt(saisie.readLine());
int c = Integer.parseInt(saisie.readLine());
int d = Integer.parseInt(saisie.readLine());
int max = 0;
if (a>max){
max = a;
}
if (b>max){
max = b;
}
if (c>max){
max = c;
}
if (d>max){
max = d;
}
System.out.println(max);
}
}