Here is the entire class that i wrote. This is part of an Instant Messenger project. The run method of this class doesnt run in a separate
thread. It is a plain Method. It is called from some other class. I basically tried quite a few things like:
Using Flush/ Without using Flush
Using Scanner Class/Without using scanner class
The snippet that i posted above is from the doChat() method.