上一页 1 ··· 6 7 8 9 10 11 下一页
摘要: package Base; public class Demo01 { public static void main(String[] args) { // TODO Auto-generated method stub long a=12345678; int b=19; int a1=10; 阅读全文
posted @ 2025-03-17 17:18 骆驼刺破仙人掌007 阅读(10) 评论(0) 推荐(0)
摘要: 变量: public class HelloWorld250316 { //实例变量 从属于对象,如果不自行初始化,这个类型的默认值 0 0.0 u000,布尔类型默认false //除了基本类型,其余的默认值都是null String name; int age; public static vo 阅读全文
posted @ 2025-03-17 16:48 骆驼刺破仙人掌007 阅读(7) 评论(0) 推荐(0)
摘要: char c='a'; int d=c+1; System.out.println(d); System.out.println((char)d); 输出98和b //类型转换 低————高:byte short char int long float double //强制转换 (类型)变量名 高 阅读全文
posted @ 2025-03-17 16:14 骆驼刺破仙人掌007 阅读(5) 评论(0) 推荐(0)
摘要: char s1='a'; char s2='中'; System.out.println(s1); System.out.println((int)(s1));//强制转换 System.out.println(s2); System.out.println((int)(s2));//所有字符本质还 阅读全文
posted @ 2025-03-17 15:27 骆驼刺破仙人掌007 阅读(12) 评论(0) 推荐(0)
摘要: 八大基本数据类型: int int num=10; byte short 小数,浮点数:float 后面加F float num=50.1F;double num2=3.1415926535; long 后面加L long num=30L; 字符:char name='国';string name= 阅读全文
posted @ 2025-03-17 15:04 骆驼刺破仙人掌007 阅读(7) 评论(0) 推荐(0)
摘要: 标识符的注意点: 关键字: 数据类型: 阅读全文
posted @ 2025-03-17 14:36 骆驼刺破仙人掌007 阅读(11) 评论(0) 推荐(0)
摘要: 1.注释: 单行注释:用// 多行注释:/注释/ Javados:文档注释:/** / /* @description */ 阅读全文
posted @ 2025-03-17 13:17 骆驼刺破仙人掌007 阅读(7) 评论(0) 推荐(0)
摘要: 编译型:直接将原文翻译,编译器 解释型:一句话一句话的翻译 对速度要求不高,用解释型语言 阅读全文
posted @ 2025-03-17 12:48 骆驼刺破仙人掌007 阅读(11) 评论(0) 推荐(0)
摘要: 每个单词的大小写不能出现问题,Java对大小写是敏感的 尽量使用英文 文件名与类名必须保持一致,并且首字母大写 符号使用了中文符号,会出现错误 阅读全文
posted @ 2025-03-16 16:54 骆驼刺破仙人掌007 阅读(13) 评论(0) 推荐(0)
摘要: 盘符切换 查看当前目录下的所有文件:dir 切换目录:cd /d f: cd .. 回到上一级 cls 清除屏幕 退出终端 exit 查看电脑IP:ipconfig 打开应用:calc 绘图:mspaint 打开记事本:notepad ping命令: ping www.baidu.com 阅读全文
posted @ 2025-03-16 15:55 骆驼刺破仙人掌007 阅读(7) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 下一页