개발/java

java 일시정지 time sleep

Yunikism 2023. 4. 20. 20:18
728x90

Thread.sleep();

 

 
    try {
 
       for (int a=0;a<10;a++) {
 
       Thread.sleep(10000); //10초
       DebugUtil.debugLogWrite("10초");
 
    }
 }catch (InterruptedException aaa){
 
 }