Why am I getting an error in this code please help me out. Error is coming that
could not find symbol thread.sleep
here is the code:
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);
}
}
}