@@ -0,0 +1,1831 @@
+/**%0A * Created by joker on 6/16/16.%0A */%0Aimport java.net.*;%0Aimport java.io.*;%0Apublic class Server%7B%0A    public static void main(String args%5B%5D)%7B%0A        ServerSocket servSocket = null;%0A        Socket c1Socket = null;%0A        int portNumber = 1777;%0A%0A        try %7B%0A            servSocket = new ServerSocket(portNumber);%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        try %7B%0A            c1Socket = servSocket.accept();%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A        ObjectOutputStream oos = null;%0A        try %7B%0A            oos = new ObjectOutputStream(c1Socket.getOutputStream());%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        ObjectInputStream ois = null;%0A        try %7B%0A            ois = new ObjectInputStream(c1Socket.getInputStream());%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A        Packet p = null;%0A        try %7B%0A            p = (Packet) ois.readObject();%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D catch (ClassNotFoundException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        System.out.println(p.content);%0A%0A        try %7B%0A            oos.writeObject(%22RECEIVED%22 + p.content);%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A%0A        try %7B%0A            ois.close();%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        try %7B%0A            oos.close();%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        try %7B%0A            c1Socket.close();%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A        try %7B%0A            servSocket.close();%0A        %7D catch (IOException e) %7B%0A            e.printStackTrace();%0A        %7D%0A    %7D%7D%0A

Create Server.java