上一页 1 ··· 9 10 11 12 13
摘要: package helloworld;public class h4 { public static void main(String[] args){ int i = 128; byte b = (byte)i;//强制溢出 double c = i; //强制转换 (类型)变量名 高--低 // 阅读全文
posted @ 2020-09-27 00:47 Liang-shi 阅读(153) 评论(0) 推荐(0) 编辑
摘要: public class h3 { public static void main(String[] args){ // 整数扩展 进制 二进制0b 十进制 八进制0 十六进制0x int i =10; int i2 = 010;//八进制 int i3 = 0x10;//十六进制 0-9 A-F 阅读全文
posted @ 2020-09-26 17:37 Liang-shi 阅读(117) 评论(0) 推荐(0) 编辑
摘要: package helloworld;public class h1 { public static void main(String arg[]){ System.out.println("hello world"); }}/* public 关键字 是描述main方法的 访问权限 static 阅读全文
posted @ 2020-09-26 10:57 Liang-shi 阅读(202) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13