For loops – Zybooks

 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:  
The output is:  

This is my code: 
import java.util.Scanner;

Don't use plagiarized sources. Get Your Custom Essay on
For loops – Zybooks
Just from $13/Page
Order Essay

public class ForLoops {
   public static void main (String [] args) {
      int firstNumber;
      int i;

      Scanner input = new Scanner(;
      firstNumber = input.nextInt();
      for (i=firstNumber;i>1; i–){





When running the program, my output only matches the two outputs as shown in the attached picture. The rest do not match. How can my code be the same as the expected output as in the attached image?
Thanks, everyone!


Calculate the price of your paper

Total price:$26
Our features

We've got everything to become your favourite writing service

Stuck with your assignment?
We've got you covered.

Order your paper now!
Live Chat+1(978) 822-0999EmailWhatsApp

Order your essay today and save 20% with the discount code SPEED