public class yx01{
public static void main(String[] args){
//自增自减
//1、单独使用;
int num1=10;
System.out.println(num1);
num++;
System.out.println(num1);
++num;
System.out.println(num1);
int num2=30;
int result4=num3–;
//result4=num3;30
//num3=num3-1; 29
System.out.println(result4);//30
System.out.println(num3);//29
result4=–num3;
//result4=num3;28
//num3=num3-1; 28
System.out.println(result4);//28
System.out.println(num3);//28
int num4=10;
int num5=20;
int result5=++num4+num5–;
//temp1= ++num4 11
//temp2=num5–
//temp1+temp2
//11 + 20
System.out.println(result5);//31
System.out.println(num4);//11
System.out.println(num5);
int num6=10;
num6+=1;
System.out.println(num6);
num6%=3;
System.out.println(num6);
byte num7=10;
num7+=10;
System.out.println(num7);
System.out.println(10>8);
System.out.println(3<8);
int num8=10;
int num9=10;
System.out.println(num8>=num9);
System.out.println(num8<=num9);
System.out.println(3<4 && 10>8);
System.out.println(true && true);
System.out.println(true && false);
System.out.println(false && false);
System.out.println(true || true);
System.out.println(true || false);
System.out.println(false || false);
System.out.println(!true);
System.out.println(!false);
int num10=10;
System.out.println(3<4 && ++num10>10);
System.out.println(num10);
System.out.println(5<4 && num10++>10);
System.out.println(num10);
int num11=10;
System.out.println(3<4 || ++num11>10);
System.out.println(num11);
System.out.println(5<4 || ++num11>10 );
System.out.println(num11);
int num12=10;
int num13=20;
int max=num12>num13? num12:num13;
System.out.println(max);
}
}