Print string "Shreyas" and wait for 10 seconds. The total duration between 3 attempts doesn't exceed 10 seconds.
public static void main(String[] args) throws InterruptedException { for (int i = 1; i <= 3; i++) { System.out.println("Shreyas"); Thread.sleep(10000); } }