I can't do anything more. I'm trying many many other codes and I can't do anything to run it properly. What I need to change there to run this?
package com.codegym.task.task04.task0419;
/*
Maximum of four numbers
*/
import java.io.*;
import java.util.Scanner;
public class Solution {
public static void main(String[] args) throws Exception {
//write your code here
Scanner skaner = new Scanner(System.in);
int a = skaner.nextInt();
int b = skaner.nextInt();
int c = skaner.nextInt();
int d = skaner.nextInt();
int e = 0;
int case1=0;
if(a>b && b>c && c>d){
e = a;
case1 = 1;
}
else if(b>a && b>c&& b>d){
e = b;
case1 = 1;
}
else if(c>a && c>b && c>d){
e = c;
case1 = 1;
}
else if(d>a && d>b && d>c){
e = d;
case1 = 1;
}
else if(a == b && b == c && c == d){
e = a;
case1 = 1;
}
if (a < b) {
a = b;
case1 = 2;
}
else if (a < c) {
a = c;
case1 = 2;
}
else if (a < d) {
a = d;
case1 = 2;
}
if(case1 == 1){
System.out.println(a);
}
else if (case1 == 2){
System.out.println(e);
}
}
}