Take a look at this... :
import java.awt.*;
import java.awt.event.*;
public class ComplexNumbers
{
public double a;
public double b;
public void setNumbers()
{
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!?!??!
2006-11-05
14:30:03
·
5 answers
·
asked by
ichr123
2
in
Computers & Internet
➔ Programming & Design
Eh. nope Jeison Iyasu, that's wrong, you need all constructors (the complex(double a, double b) and complex(double a) in a class... in fact, all code in a document needs to be in a class.. :D.
I'm actually trying to run a program for my Java class that takes two numbers (double) a and b
where a and b are in the complex equation:
a+bi
*sigh* fun fun...
2006-11-05
14:42:36 ·
update #1
bump diddley diddley, bump back up the list!
2006-11-05
14:49:09 ·
update #2
GEE THANKS KC I REALLY NEED A USELESS ANSWER.
2006-11-05
14:49:56 ·
update #3
If anyone needs more details just post, and I'll answer any questions... i really need help...
2006-11-05
14:57:36 ·
update #4
Um... even if you can point me to a website... i might just give you best answer if it helps me...
2006-11-05
15:19:32 ·
update #5