I'm working on a fairly basic program and can not seem to get it to work. I've checked my spelling and all that; the only thing I can think of is my main isn't able to find my class file.
Here's the error message:
ComplexDemo.java:10: cannot find symbol
symbol : constructor Complex(double,double)
location: class Complex
Complex a=new Complex(9.9, 7.7);
^
And the constructor in the class file:
public void Complex(double x, double y)
{
real=x;
imaginary=y;
}
When I remove the values it works fine but that sort of defeats the purpose. Any suggestions?
-Kai