Package generic.complex
Class Complex
- java.lang.Object
-
- generic.complex.Complex
-
public class Complex extends java.lang.Object
A complex number a + bi This doesn't support any actual operations, nor does it implementComparable
. It's simply enough to store and print the number.
-
-
Constructor Summary
Constructors Constructor Description Complex(double real, double imaginary)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getImaginary()
double
getReal()
java.lang.String
toString()
-