/** 10/15/2018 */ public class DeeperMethod /** This class shows 2 methods with 2 levels of calls */ { public static void main(String[] args) { sayHello(); printHello(); } /** This method calls another method (going deeper on the stack) * to print Hello World to the screen. */ public static void sayHello() { System.out.println("just entered method."); printHello(); System.out.println("done inside method, ready to leave."); } /** this method prints Hello World to the screen */ public static void printHello() { System.out.println("Hello World!"); } }