I am currently using the StringTokenizer ( java.util.StringTokenizer ) class in Java every time I encounter input wherein more than one input value is on the same line.
( Eg : 2 3 10 9 )
It appears to me that StringTokenizer is actually quite slow, and I get TLE even in situations where I should not be getting it.
Now I know that for large input-output problems, the Scanner class ( java.util.Scanner ) is not an option, since it is also too slow. Any alternatives that I can use ? Any suggestions would be appreciated. Thank you