Bartek Nowak Bartek Nowak - 9 months ago 46
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).