为什么方法名字叫做run呢 改成fun就不调用了
package com.imooc.concurrent;
public class Actor extends Thread {
public void fun() {
System.out.println(getName() +"is an actor");
int count = 0;
System.out.println(getName() + "show begins"+(++count));
System.out.println(getName() +"show is over");
}
public static void main(String[] args) {
Thread actor = new Actor();
actor.setName("Mr.Thread");
actor.start();
}
}