hi, in this code I meet all conditions.
when i put ex. 3, 3, 3, 1 it is only printing 3 once (one time)
but program says not met
package com.codegym.task.task04.task0419;
/*
Maximum of four numbers
*/
import java.io.*;
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(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 > b && c > a && c > d){
System.out.println(c);
} else {
System.out.println(d);
}
}
}