- import java.awt.AWTException;
- import java.awt.Robot;
-
- public class mycode {
-
- public static void main(String[] args) throws AWTException {
-
- Robot r = new Robot();
-
-
- for (int i = 1; i <= 3; i++) {
-
- r.delay(2000);
- System.out.println(i);
-
- }
-
- }
-
- }