getConstructor with no parameters
问题 I can't seem to use getConstructor for constructors with no parameters. I keep getting the following exception: java.lang.NoSuchMethodException: classname.<init>() Here is the code: interface InfoInterface { String getClassName(); String getMethodName(); String getArgument(); } class asa implements InfoInterface { @Override public String getClassName() { return ("jeden"); } @Override public String getMethodName() { return ("metoda"); } @Override public String getArgument() { return ("krzyk");