ASCII:
'a'-->97 'A'-->65 '0'-->48
int和char的转换
int a='a';
char b=65;
System.out.println(a);//97
System.out.println(b);//A
System.out.println(a+b);//162
字符串拼接区别:
System.out.println("hello"+10+20);//hello1020
System.out.println(10+20+"hello");//30hello
算术运算符:
一个整数除以一个整数只能得到整数 5/3=1
++,--放前,先自增或者自减然后在做其他操作
++,--放后,先做其他操作然后在自增或者自减
逻辑运算符:
&&和|| 有短路作用
switch:
case穿透(break):例如选择四季