Question: Please write the output of the following program: public class Countdown1 { //----------------------------------------------------------------- // Prints two lines of output representing a rocket countdown. //----------------------------------------------------------------- public
Please write the output of the following program:
public class Countdown1
{
//-----------------------------------------------------------------
// Prints two lines of output representing a rocket countdown.
//-----------------------------------------------------------------
public static void main(String[] args)
{
System.out.print("One... ");
System.out.print("Two... ");
System.out.print("Three... ");
System.out.println("Troy University!"); // appears on first output line
System.out.println("Welcome you!");
}
}
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
