// Illustrates control flow for methods calling methods. // In lecture, I ran it step by step using the jGRASP debugger // Add a 'stop sign' by clicking to the left of a statement. // Run with the ladybug button rather than the running man. public class MethodsExample { public static void main(String[] args) { message1(); message2(); System.out.println("Done with main."); } public static void message1() { System.out.println("This is message1."); } public static void message2() { System.out.println("This is message2."); message1(); System.out.println("Done with message2."); } }