package edu.miamioh.cse283.htw;

public class DevelServer {
	public static void main(String[] args) throws Exception {
		String[] caveSystemServerArgs = { "1234" };
		String[] caveServerArgs = { "localhost", "1234", "2000" };
		String[] clientArgs = { "localhost", "1234" };

		CaveSystemServer.main(caveSystemServerArgs);
		CaveServer.main(caveServerArgs);
		Client.main(clientArgs);
	}
}

@@ -122,115 +122,610 @@
 %0D%0A%09%09
-String%5B%5D caveSystemServerArgs = %7B %221234%22 %7D;%0D%0A%09%09String%5B%5D caveServerArgs = %7B %22localhost%22, %221234%22, %222000%22 %7D;
+Object lock = new Object();%0D%0A%0D%0A%09%09synchronized (lock) %7B%0D%0A%09%09%09new Thread(new CaveSystemServerDevel()).start();%0D%0A%09%09%09lock.wait(500);%0D%0A%09%09%09new Thread(new CaveServerDevel()).start();%0D%0A%09%09%09lock.wait(500);%0D%0A%09%09%09new Thread(new ClientDevel()).start();%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%0D%0A%09public static class CaveSystemServerDevel implements Runnable %7B%0D%0A%09%09public void run() %7B%0D%0A%09%09%09String%5B%5D caveSystemServerArgs = %7B %221234%22 %7D;%0D%0A%09%09%09try %7B%0D%0A%09%09%09%09CaveSystemServer.main(caveSystemServerArgs);%0D%0A%09%09%09%7D catch (Exception e) %7B%0D%0A%09%09%09%09e.printStackTrace();%0D%0A%09%09%09%7D%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%0D%0A%09public static class CaveServerDevel implements Runnable %7B%0D%0A%09%09public void run() %7B
 %0D%0A
+%09
 %09%09St
@@ -732,21 +732,25 @@
 ring%5B%5D c
-lient
+aveServer
 Args = %7B
@@ -773,28 +773,40 @@
 234%22
- %7D;%0D%0A
+, %222000%22 %7D;%0D%0A%09%09%09try %7B
 %0D%0A
+%09%09
 %09%09CaveS
-ystemS
 erve
@@ -809,38 +809,32 @@
 erver.main(caveS
-ystemS
 erverArgs);%0D%0A%09%09C
@@ -836,68 +836,310 @@
 %0D%0A%09%09
-CaveServer.main(caveServerArgs);%0D%0A%09%09Client.main(clientArgs);
+%09%7D catch (Exception e) %7B%0D%0A%09%09%09%09e.printStackTrace();%0D%0A%09%09%09%7D%0D%0A%09%09%7D%0D%0A%09%7D%0D%0A%0D%0A%09public static class ClientDevel implements Runnable %7B%0D%0A%09%09public void run() %7B%0D%0A%09%09%09String%5B%5D clientArgs = %7B %22localhost%22, %221234%22 %7D;%0D%0A%09%09%09try %7B%0D%0A%09%09%09%09Client.main(clientArgs);%0D%0A%09%09%09%7D catch (Exception e) %7B%0D%0A%09%09%09%09e.printStackTrace();%0D%0A%09%09%09%7D%0D%0A%09%09%7D
 %0D%0A%09%7D

fix development server