@@ -0,0 +1,1204 @@
+%60%60%60java%0Aimport java.io.*;%0Aimport java.net.ServerSocket;%0Aimport java.net.Socket;%0A%0Apublic class Main %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A        try %7B%0A            ServerSocket serverSock = new ServerSocket(9996);%0A            Socket socket = serverSock.accept();%0A            System.out.println(serverSock.getLocalPort());%0A%0A            String line;%0A            BufferedReader is = new BufferedReader(new%0A                    InputStreamReader(socket.getInputStream()));%0A            PrintWriter os = new PrintWriter(socket.getOutputStream());%0A            %0A            BufferedReader sin = new BufferedReader(new InputStreamReader(System.in));%0A            System.out.println(%22%E5%AE%A2%E6%88%B7%E7%AB%AF%EF%BC%9A%22 + is.readLine());%0A            line = sin.readLine();%0A            while(!line.equals(%22bye%22))%7B%0A                os.println(line);%0A                os.flush();%0A                System.out.println(%22%E6%9C%8D%E5%8A%A1%E5%99%A8%EF%BC%9A%22 + line);%0A                System.out.println(%22%E5%AE%A2%E6%88%B7%E7%AB%AF%EF%BC%9A%22 + is.readLine());%0A                line = sin.readLine();%0A            %7D%0A%0A            os.close();%0A            is.close();%0A            socket.close();%0A            serverSock.close();%0A        %7D catch (IOException e)%7B%0A            e.printStackTrace();%0A        %7D%0A    %7D%0A%7D%0A%0A%60%60%60%0A

Create ServerSocket.java