Compiler Error J0082

Class 'identifier' doesn't have a constructor that matches 'identifier'

The compiler did not detect a constructor matching the call identified in the error. This error usually occurs when a constructor is called with the wrong number of arguments. Ensure that the class has a constructor that matches the one you are attempting to call and compile again.

The following example illustrates this error:

public class Simple {

   Simple(int arg1) {
      // do something meaningful
   }

   public static void main (String args[]) {
   
      Simple s = new Simple(12, 13); 
      // error: too many arguments
   }
}