Compiler Error J0076

Too many arguments for method 'identifier'

The compiler detected a known method call, but the call contained more arguments than needed. Check the number of arguments for the method you are attempting to call and remove any additional arguments from the call.

The following example illustrates this error:

public class Simple {
   
   public void method1(int arg1) {
   
      // do something meaningful
   }
   
   public void method2() {
   
      method1(1, 2); // error: Too many arguments
   }
   
}