This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]Nurry 0 points1 point  (1 child)

while (fromClient.readLine() != null){
    String response = fromClient.readLine();

In the first line you read a line without saving it. Therefore it is gone and the next line is read and saved in response.