// 9/27/2017 import java.util.Scanner; /** * This class contains the first method that we are writing. */ public class voidMethod { /** * main simply will call our method */ public static void main(String[] args) { System.out.println("Hello World from main (before method call)"); displayMsg(); System.out.println("In main, returned from method."); //displayMsg(); } /** * displayMsg prints "Hello World" to the screen */ public static void displayMsg() { System.out.println("Hello World from inside a method!"); deeperMsg(); } /** * deeperMsg gets called from displayMsg */ public static void deeperMsg() { System.out.println("Hello World from inside a deeper method!"); } } /* Lab 6: * Write 2 void methods. One is called first and the other is * called second. * Call the 'first' method from main * Call the 'second' method from first. * Each method should print some kind of message. */