publicclassDemo03{publicstaticvoidmain(String[] args){// 算术运算符int a =21;int b =10;System.out.println(a+b);System.out.println(a-b);System.out.println(a*b);System.out.println(a/b);System.out.println(a%b);int c = a++;System.out.println(c);int d =++a;System.out.println(d);//赋值运算符int e =88;int f =66;//关系运算符System.out.println(e>f);System.out.println(e<f);System.out.println(e>=f);System.out.println(e<=f);System.out.println(e==f);System.out.println(e!=f);//位运算符//计算2*8最快的方法System.out.println(2<<3);System.out.println(16>>3);System.out.println(16>>>3);//条件运算符int g =80;String type = g>60?"及格":"不及格";System.out.println(type);//扩展赋值运算符System.out.println(a+=b);System.out.println(a-=b);System.out.println(a*=b);System.out.println(a/=b);}}