摘要: 1.Object类1.1 基本概念 java.lang.Object类是Java类层次结构的根类,任何类都是Object类的直接/间接子类。 1.2 常用的方法(重点) Object() - 无参构造方法 boolean equals(Object obj) - 用于判断调用对象是否和参数对象相等。 阅读全文
posted @ 2018-05-18 22:24 火丶日月明 阅读(141) 评论(0) 推荐(0) 编辑
摘要: public class TestShui{ public static void main(String[] args){ for(int i=100;i<1000;i++){ if(i==(i/100)*(i/100)*(i/100)+(i%100/10)*(i%100/10)*(i%100/1 阅读全文
posted @ 2018-05-18 21:11 火丶日月明 阅读(167) 评论(0) 推荐(0) 编辑
摘要: public class TestNx{ public static void main(String[] args){ System.out.println("请输入几位数的正整数:"); Scanner sc=new Scanner(System.in); int ia=sc.nextInt() 阅读全文
posted @ 2018-05-18 21:10 火丶日月明 阅读(836) 评论(0) 推荐(0) 编辑
摘要: * ******** *** * public class TestFf{ public static void main(String[] args){ for(int i=1;i<=3;i++){ for(int j=1;j<=(3-i);j++){ System.out.print(" "); 阅读全文
posted @ 2018-05-18 21:02 火丶日月明 阅读(169) 评论(0) 推荐(0) 编辑
摘要: * * * * * * * * public class TestFf2{ public static void main(String[] args){ for(int i=1;i<=3;i++){ for(int j=1;j<=3-i;j++){ System.out.print(" "); } 阅读全文
posted @ 2018-05-18 20:59 火丶日月明 阅读(105) 评论(0) 推荐(0) 编辑
摘要: public class TestJj{ public static void main(String[] args){ for(int i=1;i<=9;i++){ for(int j=1;j<=i;j++){ System.out.print(j+"*"+i+"="+(i*j)+"\t"); } 阅读全文
posted @ 2018-05-18 20:56 火丶日月明 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 解析: 1g => 1g 2g => 1g 1g => 1 ~ 2g之间的重量 => 1g 2g => 1 ~ 3g之间的重量 4g => 1g 2g 1g => 1 ~ 4g之间的重量 => 1g 2g 2g => 1 ~ 5g之间的重量 => 1g 2g 3g => 1 ~ 6g之间的重量 => 阅读全文
posted @ 2018-05-18 20:51 火丶日月明 阅读(1320) 评论(0) 推荐(0) 编辑
摘要: 1、Ctrl+s 保存 2、Ctrl+c 复制 3、Ctrl+v 粘贴 4、Ctrl+x 剪切 5、Ctrl+a 全选 6、Ctrl+f 查找 7、Windows+d 桌面 8、Windows+e 计算机分区 9、Windows+l 锁屏 10、Windows+r 运行,输入cmd后启动dos窗口 阅读全文
posted @ 2018-05-18 20:20 火丶日月明 阅读(284) 评论(0) 推荐(0) 编辑