@@ -0,0 +1,521 @@
+import java.io.*;%0Aimport java.net.*;%0A%0Apublic class Client %7B%0A%09public String hostName = %22%22;%0A%09public int portNumber = 0;%0A%09private Socket echoSocket;%0A%09private PrintWriter out;%0A%0A%09public Client(String hostname, int port) throws IOException %7B%0A%09%09this.hostName = hostname;%0A%09%09this.portNumber = port;%0A%09%09this.echoSocket = new Socket(hostName, portNumber);%0A%09%09this.out = new PrintWriter(echoSocket.getOutputStream(), true);%0A%09%7D%0A%0A%09public void send(String message) %7B%0A%09%09out.println(message);%0A%09%7D%0A%0A%09public void close() %7B%0A%09%09out.close();%0A%09%7D%0A%7D%0A

Create Client.java