Czy tu mogę rzucić błąd throws'em? bo gdy tak próbuję zrobić to mam błąd i nie wiem co robię źle
public class Countdown implements Runnable{
String name ;
int limit ;
@Override
public void run() throws InterruptedException {
for (int i = limit; i > 0; i--) {
System.out.println(name + ": " + i);
Thread.sleep(1000);
}
}
}