摘要: package com_black.System; public class SystemDemo01 { public static void main(String[] args) { System.out.println("开始"); System.exit(0);//调用此方法会直接终止虚拟 阅读全文
posted @ 2023-10-17 23:44 奈格里- 阅读(20) 评论(0) 推荐(0)
摘要: //局部类 package com_black.InnerClass.jubu_neibulei; public class Outer { private int m=66; public void method(){ int m2=99; class In{ public void show() 阅读全文
posted @ 2023-10-16 23:54 奈格里- 阅读(8) 评论(0) 推荐(0)
摘要: package com_black.InnerClass.s1; public class Outer { private int s=10; /*public class Inner{ public void show(){ System.out.println(s); */ private cl 阅读全文
posted @ 2023-10-15 23:36 奈格里- 阅读(5) 评论(0) 推荐(0)
摘要: package com_black.InnerClass.s1; public class Outer { private int s=10; /*public class Inner{ public void show(){ System.out.println(s); */ private cl 阅读全文
posted @ 2023-10-14 00:17 奈格里- 阅读(5) 评论(0) 推荐(0)
摘要: package com_black.jiekou.Demo01;public interface English { public abstract void speak();} package com_black.jiekou.Demo01;public abstract class Person 阅读全文
posted @ 2023-10-11 21:58 奈格里- 阅读(10) 评论(0) 推荐(0)
摘要: package com_black.jiekou;public interface Jumping { public abstract void jump();} package com_black.jiekou;public abstract class Animal { private Stri 阅读全文
posted @ 2023-10-09 22:35 奈格里- 阅读(12) 评论(0) 推荐(0)
摘要: package com_black.Abstract;public abstract class Animal { public abstract void eat(); //抽象类里可以有具体的方法 public void sleep(){ System.out.println("睡觉"); }} 阅读全文
posted @ 2023-10-07 23:52 奈格里- 阅读(8) 评论(0) 推荐(0)
摘要: package com_black.duotai; public class Animal2 { public void eat(){ System.out.println("动物吃东西"); } } package com_black.duotai; public class Cat2 exten 阅读全文
posted @ 2023-09-15 00:25 奈格里- 阅读(7) 评论(0) 推荐(0)
摘要: package com_black.duotai; public class Animal { public void eat(){ System.out.println("动物吃东西"); } } package com_black.duotai; public class Cat extends 阅读全文
posted @ 2023-09-14 00:16 奈格里- 阅读(8) 评论(0) 推荐(0)
摘要: package com_black.final00; public class Demo { public static void main(String[] args) { zi z=new zi(); z.method(); z.show(); } } package com_black.fin 阅读全文
posted @ 2023-09-12 23:38 奈格里- 阅读(8) 评论(0) 推荐(0)