摘要: public class Demo04 { public static void main(String[] args) { int i=128; byte b=(byte)i;//内存溢出 System.out.println(i); System.out.println(b); //强制转换 ( 阅读全文
posted @ 2021-08-19 16:03 大张0608 阅读(50) 评论(0) 推荐(0)
摘要: public class Demo03 { public static void main(String[] args) { //整数拓展: 进制 二进制0b 十进制 八进制0 十六进制0x int i1=10; int i2=0b10; int i3=010; int i4=0x10; Syste 阅读全文
posted @ 2021-08-19 15:33 大张0608 阅读(49) 评论(0) 推荐(0)
摘要: 打开CMD的方式 1.开始+系统+命令提示符 2.Win键+R 输入cmd打开控制台(推荐使用) 3.在任意文件夹下面,按住Shift+鼠标右键点击,打开命令行窗口 4.在资源管理器的地址栏前加上cmd 路径 以管理员的身份运行 开始+系统+在命令提示符上鼠标右键+更多 以管理员身份运行 常用的Do 阅读全文
posted @ 2021-08-16 15:12 大张0608 阅读(356) 评论(0) 推荐(0)
摘要: Markdown语法 标题: #+标题 一级标题 ##+标题 二级标题 二级标题 三级标题 字体 hello,world! hello,world! hello,world! hello,world! 引用 学JAVA,走上人生巅峰 分割线 图片 # 超链接 [点击跳转到后来空的博客](后来空的主页 阅读全文
posted @ 2021-08-15 15:34 大张0608 阅读(35) 评论(0) 推荐(0)
摘要: package com.zhang.www.base.operater; //导入这个包下所有的类 import com.zhang.www.*; public class Demo09 { public static void main(String[] args) { //三元运算符 //x?y 阅读全文
posted @ 2021-04-13 01:12 大张0608 阅读(355) 评论(0) 推荐(0)
摘要: package com.zhang.www.base.operater; public class Demo08 { public static void main(String[] args) { int a=10; int b=20; a+=b;//a=a+b a-=b;//a=a-b Syst 阅读全文
posted @ 2021-04-13 01:07 大张0608 阅读(43) 评论(0) 推荐(0)
摘要: package com.zhang.www.base.operater; //逻辑运算符 计算机位运算 public class Demo07 { public static void main(String[] args) { /* A=0011 1100 B=0000 1101 A&B=0000 阅读全文
posted @ 2021-04-13 00:59 大张0608 阅读(50) 评论(0) 推荐(0)
摘要: package com.zhang.www.base.operater; public class Dome10 { public static void main(String[] args) { //与(and)或(or)非(取反) boolean a=true; boolean b=false 阅读全文
posted @ 2021-04-13 00:45 大张0608 阅读(100) 评论(0) 推荐(0)
摘要: package com.zhang.www.base.operater; public class Demo05 { public static void main(String[] args) { //关系运算符返回的结果: 正确,错误 布尔值表示 //if int a=10; int b=20; 阅读全文
posted @ 2021-04-13 00:25 大张0608 阅读(83) 评论(0) 推荐(0)
摘要: package com.zhang.www.base.operater; public class Demo06 { public static void main(String[] args) { //++ -- 自增 自减 一元运算符:一个数字就可以运算 int a=3; int b=a++; 阅读全文
posted @ 2021-04-13 00:24 大张0608 阅读(65) 评论(0) 推荐(0)