Shreyas arya

Generation

generate functionWed, 08 Feb 2023

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); } }

Questions about programming?Chat with your personal AI assistant