packageday1;lassxunhuan{?publicstaticvoidmain(String[]args){ intnum1=33; intnum2=20; intnum3=55; intnum4=0; if(num1>num2&&num1>num3)System.out.println("最大数是:"+num1); elseif(num2>num1&&num2>num3)System.out.println("最大数是:"+num2); elseSystem.out.println("最大数是:"+num3); if(num1>num2&&num1<num3)System.out.println("第二大数是:"+num1); elseif(num2>num1&&num2>num3)System.out.println("第二大数是:"+num2); elseSystem.out.println("第二大数是:"+num3); if(num1<num2&&num1<num3)System.out.println("最小数是:"+num1); elseif(num2<num1&&num2<num3)System.out.println("最小数是:"+num2); elseSystem.out.println("最小数是:"+num3);?}?//System.out.println(sum);}