类型转换
小数的优先级要高于整数
char c
= 'a';
int d
= c
+1;
System
.out
.println(d
);
System
.out
.println((char)d
);
输出结果:
98
b
_________________________________________________________________________ _________________________________________________________________________ 大写 L 和小写 l 要区分,尽量用大写L
变量
常量
变量、常量、类名和方法的命名规范
转载请注明原文地址:https://blackberry.8miu.com/read-16157.html