summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuan P. Daza P <juan.daza@er-technology.net>2009-11-12 22:01:51 -0500
committerJuan P. Daza P <juan.daza@er-technology.net>2009-11-12 22:01:51 -0500
commit428213fac0d526e15648340ced8a3916f8e4ed14 (patch)
treed919e4146cdc6f01a7015efec011452eccfebf20
downloadsocketer-428213fac0d526e15648340ced8a3916f8e4ed14.tar.gz
socketer-428213fac0d526e15648340ced8a3916f8e4ed14.tar.xz
socketer-428213fac0d526e15648340ced8a3916f8e4ed14.zip
Initial commit.
-rw-r--r--.gitignore2
-rw-r--r--Imaginary.java31
-rw-r--r--Socketer.java19
3 files changed, 52 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..ab31b20
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.class
+
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;
+ }
+}
+
diff --git a/Socketer.java b/Socketer.java
new file mode 100644
index 0000000..2a83de8
--- /dev/null
+++ b/Socketer.java
@@ -0,0 +1,19 @@
+import java.io.*;
+
+class Socketer {
+ public static void main(String [] args)
+ {
+ System.out.println("Iniciando proceso...");
+ Imaginary i = new Imaginary();
+ i.real = 3.5;
+ i.imaginary = 17.95;
+ System.out.println("real: " + i.real + " imaginary: " + i.imaginary);
+ server();
+ }
+
+ private static void server()
+ {
+ System.out.println("Iniciando server...");
+ }
+}
+