Once in a while program hangs while reading. The program doesn't exit but rather stays up and running, but never gets past this line. It doesn't even timeout(I hve set the time out to 2 minutes). neither does it throw any exception.
Welcome to the JavaRanch, replytoamar. Please change your displayed name to conform to our naming policy. In short, your name must be a first name and last name, separated by a space and not obviously fake.