So why it isn't working?
The last Requirement comes as false.
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 bufferedReader = new BufferedReader(new InputStreamReader(System.in));
String s = bufferedReader.readLine();
int a = Integer.parseInt(s);
s = bufferedReader.readLine();
int b = Integer.parseInt(s);
s = bufferedReader.readLine();
int c = Integer.parseInt(s);
s = bufferedReader.readLine();
int d = Integer.parseInt(s);
//Find Maximum Conditions
//For b
if ((b>a) && (b>c) && (b>d)) {
System.out.println(b);
}
//For c
else if ((c>a) && (c>b) && (c>d)) {
System.out.println(c);
}
//For d
else if ((d>a) && (d>c) && (d>b)) {
System.out.println(d);
}
//For a And Same Value
else {
System.out.println(a);
}
}
}