package com;
public class Jcheng extends Thread {
public Jcheng() {
}
public static void Print(){
System.out.println("创建成功");
}
public void run(){
while(true){
System.out.println("进程进行中.......");
//1分钟
// try {
// //Thread.sleep(5000);
// } catch (InterruptedException ex1) {
// }
try {
Print();
} catch (Exception ex) {
}
}
}
public static void main(String[] args) throws Exception {
Jcheng test =new Jcheng();
test.start();
}
}
转载于:https://blog.51cto.com/congwa/1289212