public class Bomb
{
public static void main(String[] args) throws InterruptedException {
{
int counter = 10;
do
{
System.out.println(counter + " seconds until detonation.");
counter--;
Thread.sleep(1000);
} while (counter !=0);
System.out.println("BOOM");
}
}
}
On this page of the site you can watch the video online I made a bomb using Java. Do While loop countdown timer. with a duration of hours minute second in good quality, which was uploaded by the user MitchelJamesBlue 18 April 2016, share the link with friends and acquaintances, this video has already been watched 1,243 times on youtube and it was liked by 6 viewers. Enjoy your viewing!