public class PrintMore /** This class demonstrates the print and println methods * */ { public static void main(String[] args) { // anything you put in a " " is a String System.out.println("I went to the store and bought:"); System.out.print("rolls, "); // '\n' is an escape sequence represents the newline character System.out.print("cheese, \n"); System.out.println("milk."); // print and println can also print numbers // you can print multiple items with one call to println, // just concatenate (connect) them with a + sign (NOT addition) System.out.println("My \"magic\" number is: " + 456); System.out.println("I bought: \n rolls, \n cheese, \n milk."); System.out.println("Here are your choices: \n 1.Play\n 2.Quit"); } } // reserved words are words that are part of the language // SYNTAX - grammar rules