A chat program in java for cs342