The sequence on the client for each question should be:
- Print on screen
- Read user input
- Send to server
- Receive response from server
- Print response on screen
But your code does not do that. It first prints questions and reads the user input for four questions and then waits for a server response but without sending to the server.
It should be like
System.out.println("Are you in healthy condition?");
message = userEntry.nextLine();
output.println(message);
response = input.nextLine();
System.out.println("\nServer " +response);