개발/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){
 
 }
 

 

'개발 > java' 카테고리의 다른 글

@requestparam null 허용  (0) 2024.02.20
POI cell 색상 색상표  (0) 2024.01.26
java split 마침표(.) 역슬래시(\\)  (0) 2023.08.10
java 형변환 String to Date , Date to String  (0) 2023.06.30
java 형변환 String to int, int to String  (0) 2023.06.30