{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Countdown - -public static void main(String args...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // Countdown.java Author: Lewis/Loftus // // Demonstrates the difference between print and println. //******************************************************************** / public class Countdown { //----------------------------------------------------------------- // Prints two lines of output representing a rocket countdown.
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //-----------------------------------------------------------------public static void main (String args) { System.out.print ("Three. .. "); System.out.print ("Two. .. "); System.out.print ("One. .. "); System.out.print ("Zero. .. "); System.out.println ("Liftoff!"); // appears on first output line System.out.println ("Houston, we have a problem."); } }...
View Full Document

{[ snackBarMessage ]}