public class Thread{
public static void main(String[] args){
System.out.println(Thread.currentThread().getName());
}
}
Thread.java:9: error: cannot find symbol
System.out.println(Thread.currentThread().getName());
^
symbol: method currentThread() location: class Thread 1 error