diff options
author | Juan P. Daza P <juan.daza@er-technology.net> | 2009-11-12 22:01:51 -0500 |
---|---|---|
committer | Juan P. Daza P <juan.daza@er-technology.net> | 2009-11-12 22:01:51 -0500 |
commit | 428213fac0d526e15648340ced8a3916f8e4ed14 (patch) | |
tree | d919e4146cdc6f01a7015efec011452eccfebf20 /Imaginary.java | |
download | socketer-428213fac0d526e15648340ced8a3916f8e4ed14.tar.gz socketer-428213fac0d526e15648340ced8a3916f8e4ed14.tar.xz socketer-428213fac0d526e15648340ced8a3916f8e4ed14.zip |
Initial commit.
Diffstat (limited to 'Imaginary.java')
-rw-r--r-- | Imaginary.java | 31 |
1 files changed, 31 insertions, 0 deletions
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; + } +} + |