摘要: 1.Object类1.1 基本概念 java.lang.Object类是Java类层次结构的根类,任何类都是Object类的直接/间接子类。 1.2 常用的方法(重点) Object() - 无参构造方法 boolean equals(Object obj) - 用于判断调用对象是否和参数对象相等。 阅读全文
posted @ 2018-05-18 22:24 火丶日月明 阅读(140) 评论(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) 编辑
摘要: 1.抽象类(重点)1.1 抽象方法的概念 抽象方法就是指不能具体实现的方法,也就是该方法没有方法体,使用abstract关键字修饰如: public abstract void cry(); 1.2 抽象类的概念 抽象类就是不能具体实现的类,也就是不能实例化对象,使用abstract关键字修饰。 1 阅读全文
posted @ 2018-03-19 20:58 火丶日月明 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1.访问控制(笔试题)1.1 常用的访问控制符 public - 公有的 protected - 保护的 啥也不写 - 默认的 private - 私有的 1.2 访问控制符的比较 访问控制符 访问权限 本类 本包中的类 子类 其他包的类 public 公有的 ok ok ok ok protect 阅读全文
posted @ 2018-03-19 19:23 火丶日月明 阅读(145) 评论(0) 推荐(0) 编辑