Class Complex

java.lang.Object
generic.complex.Complex

public class Complex extends Object
A complex number a + bi This doesn't support any actual operations, nor does it implement Comparable. It's simply enough to store and print the number.
  • Constructor Details

    • Complex

      public Complex(double real, double imaginary)
  • Method Details

    • getReal

      public double getReal()
    • getImaginary

      public double getImaginary()
    • toString

      public String toString()
      Overrides:
      toString in class Object