What's the fastest way to read from System.in in Java?

pathikrit picture pathikrit · Aug 13, 2011 · Viewed 35.3k times · Source

I am reading bunch of integers separated by space or newlines from the standard in using Scanner(System.in).

Is there any faster way of doing this in Java?

Answer

aioobe picture aioobe · Aug 13, 2011

Is there any faster way of doing this in Java?