Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.*;
- public class delay {
- public static void main(String[] args) throws InterruptedException {
- for (int i = 0; i < 5; i++)
- {
- System.out.println(new Date());
- Thread.sleep(1000);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement