0 like 0 dislike
1 view
in Bilgi Teknolojileri by anonymous Bilge (165k points)
reshown by anonymous
java sleep code execute, How to Delay Code Execution in Java

1 Answer

0 like 0 dislike
by anonymous Bilge (165k points)
try {
       Thread.sleep(300);
     } catch (InterruptedException ex) {
        Logger.getLogger(SaleTab1Invo.class.getName()).log(Level.SEVERE, null, ex)
     }

 try {
       TimeUnit.SECONDS.sleep(1);
       } catch (InterruptedException ex) {
          Logger.getLogger(SaleTab1Invo.class.getName()).log(Level.SEVERE, null, ex);
}
...