Possible Duplicate:
Read large amount of data from file in Java
I have a string like “2 -56 0 78 0 4568 -89…” end so on. Now I use Scanner.nextInt() to parse it, but it seems to be slow. Platform is Android. Any advices how to implement in for better speed?
Thanks.
use
myString.split(" "), which split on' ', thenInteger.valuesOf(..)