Countdown -...

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

View Full Document Right Arrow Icon
//******************************************************************** // 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

This document was uploaded on 02/21/2011.

Ask a homework question - tutors are online