If I am using the code in the comments it's not filling the requirments. but with buffered reader it is working What am I missing from the code in the comment? Code in the comment! Thank in advance :)