public class Main { public void foo() { } public class A { } public void test() { foo(); } } public static void main() { } }
Standard input is empty
Main.java:10: error: method foo in class Main.A cannot be applied to given types; foo(); ^ required: String found: no arguments reason: actual and formal argument lists differ in length 1 error
Standard output is empty