Bartek Nowak Bartek Nowak - 11 months ago 51
Java Question

Is there a way to ignore first symbol using BufferedReader

I try to get data in JSON format from url, but displayed data starts with [, is there any way to ignore first symbol using BufferedReader?


Rob Rob

To skip characters, use the BufferedReader skip method:

reader = new BufferedReader(new InputStreamReader(url.openStream()));

This will work at any point in the stream (not just at the beginning).