try { while (!current.interrupted() && numSeconds > 0) { Thread.sleep(1000); System.out.println(numSeconds--); a++; } } catch (InterruptedException e) { if (a == 3) { System.out.println("Go!"); } else if(a == 4){ System.out.println("Interrupted!"); } } Why the if loop, in the Catch, not working, and if i put the if loop en the try it work?