/* GreenEggsAndHam This program demonstrates the use of methods.*/ public class GreenEggsAndHam { public static void main( String[] args ) { System.out.println("Would you like them with a mouse?"); System.out.println("Would you like them in a house?"); print_verse(); System.out.println("Would you eat them in a box?"); System.out.println("Would you eat them with a fox?"); print_verse(); System.out.println("Would you like them in a car?"); System.out.println("Eat them, eat them, here they are!"); print_verse(); System.exit(0); } // end of main public static void print_verse() { System.out.println("I do not like them here or there."); System.out.println("I do not like them anywhere..."); System.out.println("I do not like green eggs and ham!"); System.out.println("I do not like them, Sam-I-am!\n"); return; } // end of method print_verse }