Hi,
May I have some light about the requirement number 5? I've tried this task several times but I'm always failing in this requirement.
I guess I have to catch the exception but the task must continue with the countdown, don't I?
Thanks in advance
package com.codegym.task.task09.task0920;
/*
Countdown
*/
public class Solution {
public static void main(String[] args) throws InterruptedException {
for (int i = 10; i >= 0; i--) {
System.out.println(i);
//write your code here
try {
Thread.sleep(100);
}
catch(InterruptedException e){
if(Thread.interrupted()){
throw new InterruptedException() ;
}
}
}
}
}