program to take the command line input to cut down the blast off.
// DebugSix3.java
// Prompt user for value to start
// Value must be between 1 and 20 inclusive
// At command line, count down to blastoff
// With a brief pause between each displayed value
import javax.swing.*;
public class DebugSix3
{
public static void main(String[] args)
{
String userNumString;
int userNum, val;
final int MIN = 1;
final int MAX = 20;
userNumString = JOptionPane.showInputDialog(null,
"Enter a number between " + MIN + " and " + MAX + " inclusive");
userNum = Integer.parseInt(userNumString);
while(userNum < MIN || userNum > MAX)
{
userNumString = JOptionPane.showInputDialog(null,
"Number out of range" +
"\nEnter a number between " + MIN + " and " + MAX + " inclusive");
userNum = Integer.parseInt(userNumString);
}
for(val = userNum; val > 0; --val)
{
System.out.print(val + " ");
for(int x = 0; x < 100000; ++x)
for(int y = 0; y < 10000; ++y);
// Adjust these numbers for faster or slower performance
}
System.out.println("Blastoff!");
}
}
learn more about command line input here:
https://brainly.com/question/19569210
#SPJ1