Thread sleep:
try{
Thread.sleep(1000);
}catch(InterruptedException e){
e.PrintStackTrace ();
}
This thread is a problem with sleep () method, fill in brackets sleep time, in milliseconds, 1s to fill in 1000
Thread sleep:
try{
Thread.sleep(1000);
}catch(InterruptedException e){
e.PrintStackTrace ();
}
This thread is a problem with sleep () method, fill in brackets sleep time, in milliseconds, 1s to fill in 1000