摘要: public class MyThread extends Thread { public void run() { for (int i = 0; i < 100; i++) { System.out.println("MyThread " + i); try { Thread.sleep(100); ... 阅读全文
posted @ 2020-09-04 23:27 thomas_blog 阅读(128) 评论(0) 推荐(0) 编辑
摘要: public interface A { public void func();}public class B implements A { public B() { // TODO Auto-generated constructor stub } @Override public void func() { // TODO Auto-g... 阅读全文
posted @ 2020-09-04 18:50 thomas_blog 阅读(98) 评论(0) 推荐(0) 编辑
摘要: public class A { int i; public A() { // TODO Auto-generated constructor stub } class B { int j; int add() { return i + j; } }}public class Test { ... 阅读全文
posted @ 2020-09-04 18:04 thomas_blog 阅读(143) 评论(0) 推荐(0) 编辑
摘要: public interface Person { void introduce();}public class Student implements Person { public Student() { // TODO Auto-generated constructor stub } public void introduce() { Sy... 阅读全文
posted @ 2020-09-04 16:16 thomas_blog 阅读(145) 评论(0) 推荐(0) 编辑