So I can't redo because my code passed but if
try
{
while(numSeconds > 0)
{
System.out.print(numSeconds + " ");
numSeconds--;
//Thread.sleep(1000);
}
System.out.println("Go!");
//throw new InterruptedException("What");
}
catch (InterruptedException e) {
System.out.print("Interrupted!");
}
Not having Thread.sleep(1000) in there;
I get this error: exception java.lang.InterruptedException is never thrown in body of corresponding try statement. Can someone tell me why?