@@ -0,0 +1,549 @@
+//When a method A calls another method B, %0A//the program's execution jumps into B, executing its statements, %0A//then jumps back to method A, at the point where the method was called.%0A%0Apublic class MethodExample %7B%0A%09public static void main (String%5B%5D args)%7B%0A%09%09message1();%0A%09%09message2();%0A%09%09System.out.println(%22Done with main.%22);%0A%09%7D%0A%0A%09public static void message1() %7B%0A%09%09System.out.println(%22This is message1.%22);%0A%09%7D%0A%0A%09public static void message2() %7B%0A%09%09System.out.println(%22This is message2.%22);%0A%09%09message1();%0A%09%09System.out.println(%22Done with message 2.%22);%0A%09%7D%0A%7D%0A

Create methodExample.java