摘要:
public class Demoleizhuanhuan { public static void main(String[] args) { //低 高 // byte shprt char int long float double //高到低 强制转换 (类型)变量名 //低到高 自动转换 阅读全文
posted @ 2022-03-12 21:40
白糖11
阅读(16)
评论(0)
推荐(0)
摘要:
public class Demokuozhang { public static void main(String[] args) { //整数拓展 进制 二进制0b 八进制0 十进制 十六进制0x int i = 10; int i2 = 010; //八进制0 int i3 = 0x10; / 阅读全文
posted @ 2022-03-12 17:52
白糖11
阅读(27)
评论(0)
推荐(0)
摘要:
public class Demo8D { public static void main(String[] args) { //八大基本数据类型 //整数 int num1 = 10;//最常用 byte num2 = 20; short num3= 30; long num4= 30L;//Lo 阅读全文
posted @ 2022-03-12 17:50
白糖11
阅读(59)
评论(0)
推荐(0)