package com.ian;

import java.io.*;
import java.net.*;

public class ClientSocketHelper {

    public static String request(String toServer) throws IOException {
        //System.out.println("request called");
        Socket clientSocket = new Socket("127.0.0.1", 5000);
        //System.out.println("ClientSocket initiated");
        PrintWriter outToServer = new PrintWriter(clientSocket.getOutputStream(), true);
        BufferedReader inFromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));

        outToServer.println(toServer);
        //System.out.println("Client called");
        return inFromServer.readLine();
    }
}

@@ -159,56 +159,8 @@
 n %7B%0A
-        //System.out.println(%22request called%22);%0A
     
@@ -220,64 +220,8 @@
 0);%0A
-        //System.out.println(%22ClientSocket initiated%22);%0A
     
@@ -461,55 +461,8 @@
 r);%0A
-        //System.out.println(%22Client called%22);%0A
     

delete commented-out println statements