提交 bbe93607 编写于 作者: 御承扬

Update

上级 bde4e985
package 多线程;
// !/usr/bin/env jdk1.8
// encoding:utf-8
//@software:IntelliJ IDEA
//@pack:多线程
//@user:彭友聪
//@date:2019/7/1
//@time:10:05
//@project:IDEA_JAVA
//@file:ThreadTest.java
//Author:御承扬
//email:2923616405@qq.com
public class ThreadTest extends Thread{
private int count = 10;
public void run() {
do {
System.out.print( count + " " );
--count;
} while (count != 0);
}
public static void main(String[] args) {
ThreadTest test = new ThreadTest();
test.start(); // 启动线程
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册