public class Main { public static void main(String[] args) { foo(); } static void foo() { System.out.println("Inside foo"); } }
public class Main {
public static void main(String[] args) {
foo();
method();
}
static void foo() {
System.out.println("Inside foo");
}
static void method(){
foo();
}
}
method就是第二个方法,不知道理解的是否正确