-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainClass.java
33 lines (24 loc) · 928 Bytes
/
MainClass.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
public class MainClass {
public static void main(String[] args) {
EchoServer myTestServer = new EchoServer();
myTestServer.start();
EchoClient testClient0 = new EchoClient("Ciao Mondo!");
EchoClient testClient1 = new EchoClient("Pici cacio e pepe");
EchoClient testClient2 = new EchoClient("Forza Portoscuso!");
EchoClient testClient3 = new EchoClient("Crostata di pere");
EchoClient testClient4 = new EchoClient("Carciofi alla romana");
EchoClient testClient5 = new EchoClient("Pasta alla gricia");
try{
Thread.sleep(500);
}
catch(InterruptedException e){
e.printStackTrace();
}
testClient0.start();
testClient1.start();
testClient2.start();
testClient3.start();
testClient4.start();
testClient5.start();
}
}