/** * Author: Josiah Yoder et al. * Class: SE1011-011 * Date: 10/21/13 1:20 AM * Lesson: Week 7, Day 1 */ public class Complex011_7_1 { private double real; private double imaginary; public Complex011_7_1(double real, double imaginary) { this.real = real; this.imaginary = imaginary; } /* * Add an imaginary number to the complex number * * imagineN -- "b" in the expression b*i that represents the imaginary number */ public void addImaginary(double imagineN) { // need a & b // What do we have? // this.real; // this.imaginary; imaginary = imagineN + imaginary; } }