Update TCPClient.java

added threading