Charles Ellis wrote:
Charles Ellis wrote:Does Power.java have to be a constructor for PowerJDialog.java?
Charles Ellis wrote:when I compile PowerJDialog.java, I get the following error:
PowerJDialog.java:36: error: constructor Power in class Power cannot be applied to given types;
Power p = new Power(a,n);
^
required: no arguments
found: float,long
reason: actual and formal argument lists differ in length
1 error
Trying to collect the broken pieces of my life,in the process of making out a beautiful picture out of it.
Sachin Tripathi wrote:I think you will achieve what you want by putting --i in place of ++I
Trying to collect the broken pieces of my life,in the process of making out a beautiful picture out of it.
Screaming fools! It's nothing more than a tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|