the program is all of it right but i had a problem with the last condition, i tried in many ways but i did not found the right one....
What should the code be to do the last condition?
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));
String numo = reader.readLine();
int num1 = Integer.parseInt(numo);
String numT = reader.readLine();
int num2 = Integer.parseInt(numT);
String numt = reader.readLine();
int num3 = Integer.parseInt(numt);
String numf = reader.readLine();
int num4 = Integer.parseInt(numf);
if(num1 > num2 && num1 > num3 && num1 > num4){System.out.println(num1);}
if(num2 > num1 && num2 > num3 && num2 > num4){System.out.println(num2);}
if(num3 > num1 && num3 > num2 && num3 > num4){System.out.println(num3);}
if(num4 > num1 && num4 > num2 && num4 > num3){System.out.println(num4);}
if(num1 == num2 && num2 == num3 && num3 == num4 || num2 == num1 && num2 == num3 && num2 == num4 ||num3 == num1 && num3 == num2 && num3 == num4 ||num4 == num1 && num4 == num3 && num4 == num2 ){System.out.println(num1);}
}
}