Java语言中:++a与a++小练习 &与&&小练习 |与||小练习 boolean类型小练习
---------------------------------------------------第一题int x = 1,y = 1; if(x++==2 & ++y==2) //false & true =false; x=2,y=2{ x =7;}System.out.println("x="+x+",y="+y); 输出结果是: x=2,y=2---------------------------------------------------第二题int x = 1,y = 1; if(x++==2 && ++y==2){ x =7;}System.out.println("x="+x+",y="+y); 输出结果是: x=2,y=1---------------------------------------------------第三题int x = 1,y = 1; if(x++==1 | ++y==1) //true | false = true; x=2,y=2{ x =7; //x=7,y=2}System.out.printl...