If you do not have a constructor the Java compiler will create a no-arguments constructor for you.
As soon as you provide a constructor which has arguments the no-argument constructor does not get created by the compiler.
So if you add a no-arguments constructor to InVoice (like below) it should work.
public InVoice() {
}
2
solved can not find error in java [closed]