/* This program simply demonstrate how to call a void method inside a void method * */ public class DoubleMethod { public static void main(String[] args) { System.out.println("I'm in main right now"); // Here we calls the first method method1(); System.out.println("Now I'm back in main again"); } public static void method1() { System.out.println("Hi! I'm in the first method right now"); // Now we calls the second method method2(); } public static void method2() { System.out.println("Now I'm in the second method"); } }