From 428213fac0d526e15648340ced8a3916f8e4ed14 Mon Sep 17 00:00:00 2001 From: "Juan P. Daza P" Date: Thu, 12 Nov 2009 22:01:51 -0500 Subject: Initial commit. --- Imaginary.java | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Imaginary.java (limited to 'Imaginary.java') diff --git a/Imaginary.java b/Imaginary.java new file mode 100644 index 0000000..6dd0fd6 --- /dev/null +++ b/Imaginary.java @@ -0,0 +1,31 @@ +class Imaginary { + double real; + double imaginary; + + public Imaginary() { + this.real = 0; + this.imaginary = 0; + } + + public Imaginary(double r, double i) { + this.real = r; + this.imaginary = i; + } + + public double getReal() { + return this.real; + } + + public double getImaginary() { + return this.imaginary; + } + + public void setReal(double r) { + this.real = r; + } + + public void setImaginary(double i) { + this.imaginary = i; + } +} + -- cgit