为什么我在此代码中收到错误,请帮助我。错误来了
找不到符号thread.sleep
这是代码:
import java.util.Date;
class Date_Time
{
public static void main(String[] args)
throws Throwable
{
while(true)
{
Date_Time d= new Date_Time();
System.out.print(d);
thread.sleep(500);
System.out.println("\r");
thread.sleep(500);
}
}
}