-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
java-曹志1407064122 #29
Comments
//因为这周通知考试只能有三天时间复习迟迟未上传 import java.io.*; public class Filetext {
|
//删羊1
|
//删羊2
sheepList.remove(sheepList.size()-1); |
//删羊3
|
//线程—Thread public class Thread_me extends Thread {
// new Thread_me().start();
} |
//线程-Runnable public class Runable_me implements Runnable{
} |
在java中可有两种方式实现多线程,一种是继承Thread类,一种是实现Runnable接口;Thread类是在java.lang包中定义的。一个类只要继承了Thread类同时覆写了本类中的run()方法就可以实现多线程操作了,但是一个类只能继承一个父类,这是此方法的局限。 |
No description provided.
The text was updated successfully, but these errors were encountered: