Embed presentation
Download to read offline
![Hi! Can everyone help me solve this java problem?
Write code that prints: Ready! firstNumber ... 2 1 Blastoff!
Your code should contain a for loop. Print a newline after each
number and after each line of text.
Ex: If the input is:
3
The output is:
Ready!
3
2
1
Blastoff!
This is my code:
import java.util.Scanner;
public class ForLoops {
public static void main (String [] args) {
int firstNumber;](https://image.slidesharecdn.com/hicaneveryonehelpmesolvethisjavaproblemwritecodetha-211011083920/85/Hi-can-everyone-help-me-solve-this-java-problem-write-code-tha-1-320.jpg)


The document asks for help with a Java program that prints the countdown sequence "Ready!", a user-input number, and then counts down from that number to 1, each on a new line, before printing "Blastoff!". It provides sample input/output and the code written so far, which only partially matches the expected output. The author is looking for help modifying their code to fully match the provided expected output.
![Hi! Can everyone help me solve this java problem?
Write code that prints: Ready! firstNumber ... 2 1 Blastoff!
Your code should contain a for loop. Print a newline after each
number and after each line of text.
Ex: If the input is:
3
The output is:
Ready!
3
2
1
Blastoff!
This is my code:
import java.util.Scanner;
public class ForLoops {
public static void main (String [] args) {
int firstNumber;](https://image.slidesharecdn.com/hicaneveryonehelpmesolvethisjavaproblemwritecodetha-211011083920/85/Hi-can-everyone-help-me-solve-this-java-problem-write-code-tha-1-320.jpg)

