Instant messenger Implement in Java