@@ -0,0 +1,1157 @@
+// javac Server.java && java Server %5Bport=8080%5D %5Bhost=127.0.0.1%5D%0A%0Aimport java.net.*;%0Aimport java.io.*;%0A%0Apublic class Server %7B%0A  public static void main(String%5B%5D argv) throws IOException %7B%0A    String host = %22127.0.0.1%22;%0A    short port = 8080;%0A%0A    if(argv.length %3E= 2)%0A      host = argv%5B1%5D;%0A%0A    if(argv.length %3E= 1)%0A      port = Short.parseShort(argv%5B0%5D);%0A%0A    ServerSocket server = null;%0A%0A    try %7B%0A      server = new ServerSocket(port, 0, InetAddress.getByName(host));%0A%0A      System.err.println(%22Server listening on %22 + host + %22:%22 + port + %22%5Cn%22);%0A%0A      while(true) %7B%0A        Socket client = server.accept();%0A        PrintWriter out = new PrintWriter(client.getOutputStream(), true);%0A        BufferedReader in = new BufferedReader(new InputStreamReader(client.getInputStream()));%0A%0A        String input;%0A%0A        while(!(input = in.readLine()).equals(%22%22))%0A          System.out.println(input);%0A%0A        System.out.println(%22%22);%0A%0A        out.write(%22HTTP/1.1 200 OK%22);%0A        out.close();%0A        in.close();%0A        client.close();%0A      %7D%0A    %7D%0A    finally %7B%0A      System.out.println(%22Closing%22);%0A      if(server != null)%0A        server.close();%0A    %7D%0A  %7D%0A%7D%0A

Add a java implementation