// Example of print and println methods public class Example1 { public static void main(String[] args) { System.out.print("Five... "); System.out.print("Four... "); System.out.print("Three... "); System.out.print("Two... "); System.out.print("One... "); System.out.println("Blastoff!"); // ends first output line System.out.println("Houston, we've spotted an alien."); System.out.println("\n\tLock missiles and fire"); System.out.println("\nRoger, Houston..."); } }