摘要:
package operator;public class Demo04 { public static void main(String[] args) { //++ -- 自增,自减 一元运算符 int a =3; int b = a++; //先把a的值给b 然后再执行 a = a + 1; 阅读全文
摘要:
package operator;import static java.lang.Character.getType;public class Demo02 { public static void main(String[] args) { long a = 123123123123123L; i 阅读全文
摘要:
一.强制转换 (你想要转换的类型)变量名 高--低 int i = 128; System.out.println((short)i); 二.自动转换 低--高 int n = 10; double s = n; System.out.println(s); //10.0 三.拓展 操作较大的数的时 阅读全文