摘要: public class Day3 { public static void main(String[] args) { //int a =1,b=2,c=3; int a = 1; int b = 2; String name = "长伟"; char x = 'S'; double num = 阅读全文
posted @ 2021-09-04 15:46 亮闪闪的鱼 阅读(35) 评论(0) 推荐(0)
摘要: public class day2 { public static void main(String[] args) { int i = 127; byte b = (byte)i; //强制转换 (类型)变量名 高--低 //自动转换 低--高 System.out.println(i); //强 阅读全文
posted @ 2021-09-04 13:47 亮闪闪的鱼 阅读(33) 评论(0) 推荐(0)
摘要: public class day1{ public static void main(String[] args){ //整数拓展: 进制 二进制0b 十进制 八进制0 十六进制0x int i = 10; int i2 = 010; //八进制 0 int i3 = 0x10; //十六进制 0x 阅读全文
posted @ 2021-09-04 12:44 亮闪闪的鱼 阅读(39) 评论(0) 推荐(0)