Link to home
Start Free TrialLog in
Avatar of haneefnb
haneefnb

asked on

what is the use of skip() in the BufferedReader class?

H i want to know the usage of the skip() in the BufferedReader class?
Avatar of Kevin Cross
Kevin Cross
Flag of United States of America image

Hello haneefnb

It allows you to skip over a certain number of characters specified as a long value passed like skip(100) will skip over 100 characters so that when you call read() next you get the 101st character instead of the 1st from where you currently are in the buffered reader.

Hopefully that makes sense.

Regards,

mwvisa1
Avatar of haneefnb
haneefnb

ASKER

thank u mwvisa1

could u please give me a example for this
ASKER CERTIFIED SOLUTION
Avatar of Kevin Cross
Kevin Cross
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial