public class ABC {
public static void main(String[] args) {
double num1 = Double.parseDouble(args[0]);
double num2 = Double.parseDouble(args[1]);
double num3 = Double.parseDouble(args[3]);
double max = num1;
double min = num1;
if(num2 > max){
max = num2;
}else{
min = num2;
}
if(num3 > max){
max = num3;
}else{
min = num3;
}
}
}
你运行的时候没有在命令行输参数吧