- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
public void pause(){
Object lock=new Object();
synchronized(lock){
try{
lock.wait(1000);
}catch(Exception e){
System.out.println(e.getMessage());
}
}
}