Dear All,
I have snippet of code as below. It is a listener which is waiting for the data so I use local to telnet to this program in the same machine. Nothing gets printed unless after sending the data I press enter. On the other hand if I use read method it prints it well chracter by chracter.
while ((line = r.readLine()) != null) {
// Print the content on the console
System.out.println (line);
}