摘要:
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)

浙公网安备 33010602011771号