摘要:
一.package operation;//逻辑运算符public class Demo05 { public static void main(String[] args) { // 与(and) 或(or) 非(取反) boolean a = true; boolean b = false; S 阅读全文
posted @ 2021-02-03 18:49
龙研
阅读(53)
评论(0)
推荐(0)
摘要:
package operation;public class Demo04 { public static void main(String[] args) { // ++ -- 自增 自减 一元运算符 int a = 3; int b = a++; //a++ a= a+ 1 执行完这行代码后,先 阅读全文
posted @ 2021-02-03 18:47
龙研
阅读(43)
评论(0)
推荐(0)
摘要:
一. package operation;public class Demo01 { public static void main(String[] args) { // 二元运算符(a+b) int a = 10; int b = 20; int c = 15; int d = 25; Syst 阅读全文
posted @ 2021-02-03 18:46
龙研
阅读(43)
评论(0)
推荐(0)
摘要:
一.package base;public class Demo05 { public static void main(String[] args) { //操作较大数值的时候注意溢出问题!! //jdk7新特性(数字之间可以用下划线分割) int money = 10_0000_0000; in 阅读全文
posted @ 2021-02-03 18:44
龙研
阅读(39)
评论(0)
推荐(0)
摘要:
package base;public class Demo04 { public static void main(String[] args) { int i =130; byte b = (byte)i;// 内存溢出,130数值超出byte最大值 System.out.println(i); 阅读全文
posted @ 2021-02-03 18:31
龙研
阅读(35)
评论(0)
推荐(0)

浙公网安备 33010602011771号