English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

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

2 answers

Whats Complex? Your class name is ComplexNumbers. Change all the Complex to complexnumber.

2006-11-05 18:43:25 · answer #1 · answered by manoj Ransing 3 · 1 0

seems like there is no class defined like Complex.
Check the link, maybe that's what you're looking for.

2006-11-05 15:29:55 · answer #2 · answered by argiope 1 · 1 0

fedest.com, questions and answers