java version of command line TCP chat program