thejwal pavithran wrote:i think i got it so just to confirm : below i am reading an int value but there is an unread EOL value..which is read in by the in.nextLine(). is my thinking right?
if so, is this the proper way to read this EOL character?
Yes, I believe that's correct, and I think that's the standard way of handling these cases with Scanner. I never use Scanner myself.