Here is the code im working with:
Code:int i=0; String iLine = in.readLine(); // Tokenize st = new StringTokenizer(iLine,","); while (st.hasMoreTokens()) { r[i] = st.nextToken(); i++; }
Here is the Data Im working with:
Hilton,15,,2,,
The tokens Im getting are as follows:
Hilton
15
2
But what I need is
Hilton
15
2
I need to get that blank token, how can I get it?
Thanks!




Reply With Quote