摘要: public class Demo06 { public static void main(String[] args) { //int a,b,c; //int a =1,b=2,c=3; //程序可读性 String name ="zhongzhong"; char x = 'X'; doubl 阅读全文
posted @ 2024-01-25 19:26 钟钟33 阅读(27) 评论(0) 推荐(0)
摘要: public class Demo05 { public static void main(String[] args) { //操作比较大的数时,注意溢出问题 //JDK7新特性,数字之间可以用下划线分割 _ int money = 10_0000_0000; int years = 20; in 阅读全文
posted @ 2024-01-25 19:25 钟钟33 阅读(53) 评论(0) 推荐(0)
摘要: public class Demo04 { public static void main(String[] args) { int i = 128; double b = i;//内存溢出 //强制转换 (类型)变量名 高 >低 //自动转换 低 >高 System.out.println(i); 阅读全文
posted @ 2024-01-25 19:25 钟钟33 阅读(52) 评论(0) 推荐(0)
摘要: import java.sql.SQLOutput; public class Demo03 { public static void main(String[] args) { //整数拓展: 进制 二进制0b 十进制 八进制0 十六进制0x int i = 10; int i2 = 010; / 阅读全文
posted @ 2024-01-25 19:24 钟钟33 阅读(34) 评论(0) 推荐(0)
摘要: public class Demo01 { public static void main(String[] args) { String Ahello="zhong"; String hello="zhong"; String $hello="zhong"; String _hello="zhon 阅读全文
posted @ 2024-01-25 19:22 钟钟33 阅读(24) 评论(0) 推荐(0)
摘要: hello world 随便新建一个文件夹,存放代码 新建一个Java文件 。文件后缀名为.java 。Hello.java 。【注意点】系统可能没有显示文件后缀名,我们需要手动打开 编写代码 public class Hello{ public static void main(String[] 阅读全文
posted @ 2024-01-25 19:17 钟钟33 阅读(21) 评论(0) 推荐(0)
摘要: 打开CMD的方式 开始+系统+命令提示符 Win键+R 输入cmd打开控制台(推荐使用) 在任意的文件夹下面,按住shift键+鼠标右键点击,在此处打开命令行窗口 资源管理器的地址栏前面加上cmd路径 管理员方式运行:选择以管理员方式运行 常用的Dos命令 1. #盘符切换 2. #查看当前目录下的 阅读全文
posted @ 2024-01-25 19:17 钟钟33 阅读(24) 评论(0) 推荐(0)
摘要: MarkDown学习 二级标题 字体 hello world 引用 选择Java 分割线 图片 超链接 登陆游戏 c c c c 表格 名字 性别 生日 张三 男 1997.1.1 代码 d 阅读全文
posted @ 2024-01-25 19:16 钟钟33 阅读(16) 评论(0) 推荐(0)