教材程序,三个数比较大小, 什么地方出现有误
improt *;public class CompIf{
pubic static void main(String args[]) throws IOException{
int a,b,c,t;
String str;
BufferedReader buf;
buf=new BufferedReader(new InputStreamReader(System.in));
System.out.print("input sirst number:");
str=buf.readLine();
a=Integer.parseInt(str);
System.out.print("input second number:");
str=buf.readline();
b=Integer.parseInt(str);
System.out.print("input third number:");
str=buf.readline();
a=Integer.parseInt(str);
if (a>b)
{t=a;a=b;b=t;}
if (a>c)
{t=a;a=c;c=t;}
if (b>c)
{t=b;b=c;c=t;}
System.out.print(a+",");
System.out.print(b+",");
System.out.print(c+",");
}
}
jdk8下调试
误在1、3行