public class Main{
/**
* @param args the command line arguments
*/
public static void main(String[] args) {
// TODO code application logic here
System.out.println("Eric Riley awesome!");
System.out.println(Thread.currentThread().getName());
}
}
使用Thread.currentThread().getName(); 來取得名稱
沒有留言:
張貼留言