@@ -0,0 +1,550 @@
+import java.io.DataOutputStream;%0Aimport java.net.Socket;%0Aimport java.util.Scanner;%0A%0A%0Apublic class Client %7B%0A%09public static void main(String %5B%5D s)%0A%09%7B%0A%09%09try%0A%09%09%7B%0A%09%09Socket ss= new Socket(%22localhost%22,1123);%0A%09%09DataOutputStream dos = new DataOutputStream(ss.getOutputStream());%0A%09%09Scanner input= new Scanner(System.in);%0A%09%09System.out.println(%22Enter Your Name%22);%0A%09%09String name= input.next();%0A%09%09dos.writeUTF(name);%0A%09%09String data= %22%22;%0A%09%09while(!data.equals(%22stop%22))%0A%09%09%7B%0A%09%09%09data=input.next();%0A%09%09%09dos.writeUTF(data);%0A%09%09%7D%0A%09%09%7D%0A%09%09catch(Exception e)%0A%09%09%7B%0A%09%09%09%0A%09%09%7D%0A%09%09%0A%09%7D%0A%7D%0A

Create Client.java