title: BufferedReader keeps waiting for response
body: <p>I have a server and client running on local server. </p>
  
  <p>I read from the server this way:</p>
  
  <pre><code>br = new BufferedReader(new InputStreamReader(socket.getInputStream()));
  
  public static String readResponse() throws IOException{
      String response = "";
      String line;
      while((line = br.readLine()) != ""){
          System.out.println("s: " + line);
      }
      return response;
  
  }
  </code></pre>
  
  <p>And I get the response from server but the program stops and doesn't go anywhere from there:</p>
  
  <pre><code>Please enter option number: 1 
  c: MSGGET
  s: 200 OK
  s: Go for it now. The future is promised to no one.
  </code></pre>
  
  <p>And it just hangs here, when it is suppose to continue.</p>
  
  <p>I also tried:</p>
  
  <pre><code>while((line = br.readLine()) != null){
  </code></pre>
  
  <p>It just keeps waiting. Is there anything maybe on the server that I have to change to tell the client that I am done transmitting data. </p>
  
  <p>Please help! Thank you! </p>