Chat Application Code in JAVA