SHARE
TWEET

Untitled

xNos May 23rd, 2020 1,466 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import java.util.*;
  2.  
  3. public class delay {
  4.  
  5.  
  6.     public static void main(String[] args) throws InterruptedException {
  7.         for (int i = 0; i < 5; i++)
  8.         {
  9.             System.out.println(new Date());
  10.             Thread.sleep(1000);
  11.         }
  12.     }
  13.  
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top