//整形大小比较和i加加i
package test;
public class ABT {
public static void main(String[] args) {
int a=2;
int b=-1;
int t = 1;
if((a=b)>0){ //比较整形大小
t=a++;
}
System.out.println("t:"+t); //1
System.out.println("a=b:"+(a=b));//-1
//测试i++i
int i=1,c=0;
//System.out.println("c=i++===> "+(c=i++));//1, 先用再加,
System.out.println("c=++i===> "+(a=++i));//2,先加再用
}
}