Take a look at this:
import java.awt.*;
import java.awt.event.*;
public class ComplexNumbers
{
public double a;
public double b;
public void setNumbers()
{
//this just asks the user for a and b
EasyReader console = new EasyReader();
System.out.print("Considering the formula ' a+ bi '" +'\n');
System.out.print("Enter a: ");
a = console.readInt();
System.out.print("Enter b: ");
b = console.readInt();
}
Complex h = new Complex (a,b);
public void Complex (double a, double b)
{
}
public void Complex (double a)
{
}
}
--------------------------------------------------------
When compiled it returns the error:
cannot find symbol : constructor Complex(double,double)
Help!?!??!
Yes, the program is still quite incomplete, but i cant get any farther without solving this problem..
If you have any questions then just hit answer and ill add more explanation if needed... thanks
2006-11-05
15:22:45
·
2 answers
·
asked by
ichr123
2
in
Computers & Internet
➔ Programming & Design
eh... not exactly... but thx anyways.... u might be the best answer anyway tho... :D
2006-11-05
15:37:22 ·
update #1