For example if I assign multiple lines to a string as so:
while ((line = reader.readLine()) != null) { output += line + \"\\n\"; } >
why not just move this to outside the while loop?
System.out.print("Enter your choice: "); fromClient = stdIn.readLine().trim();