摘要:
public class demo03 { public static void main(String[] args) { int a=125; byte i=(byte)a; System.out.println(i); //强制转换:低-->高 //自动转换:高-->低 /*注意点: 1.不能 阅读全文
posted @ 2022-04-19 23:17
回忆也交给时间
阅读(17)
评论(0)
推荐(0)
摘要:
public class demo02 { public static void main(String[] args) { //整数拓展: 进制:二进制0b 八进制0 十进制 十六进制0x int i=0b10; int i1=010; int i2=0x10; System.out.printl 阅读全文
posted @ 2022-04-19 22:11
回忆也交给时间
阅读(23)
评论(0)
推荐(0)
摘要:
public class demo01 { public static void main(String[] args) { //类名可用中文也可用英文,但是不建议用中文 String 王者荣耀="百星王者"; //String 王者荣耀="倔强青铜"; //大小写敏感,大写和小写完全是两个类名 S 阅读全文
posted @ 2022-04-19 11:39
回忆也交给时间
阅读(15)
评论(0)
推荐(0)

浙公网安备 33010602011771号