/**
* 至少也有一个线程
*
* @author brj
*
*/
public class ThreadDemo {
/**
* @param args
*/
public static void main(String[] args) {
Thread thread = Thread.currentThread();
System.out.println("Current Thread: " + thread.getName());
thread.setName("TheMainThread");
System.out.println("After Changed");
System.out.println("Current Thread: " + thread.getName());
}
}
读完这篇文章后,您心情如何?