whats wrong with this?
package zh.codegym.task.task04.task0419;
/*
四个数字中的最大值
*/
import java.io.*;
public class Solution {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String x1 = reader.readLine();
String x2 = reader.readLine();
String x3 = reader.readLine();
String x4 = reader.readLine();
int a = Integer.parseInt(x1);
int b = Integer.parseInt(x2);
int c = Integer.parseInt(x3);
int d = Integer.parseInt(x4);
int max = a;
if ( max < b )
{
int s = max;
max = b;
b = s;
}
else if ( max < c )
{
int s = max;
max = c ;
c = s ;
}
else if ( max < d )
{
int s = max ;
max = d ;
d = s ;
}
System.out.println(max);//在此编写你的代码
}
}