1) Change the == on line 50 of EchoClient to !=
2)
Don't println to a socket. Instead of using println(), use print, explicitly print out the line separator you want, and manually flush:
After these changes your echo server and client are working just fine with me.