Original Post
I have a question related to StringTokenizer. I'm using the code below to retrieve a line from a file. StringTokenizer token = new StringTokenizer(element, "*"); The line is as belowed. RMR*CR*00101539**0.01 I'm expecting the retrieved token.count to be 5 with an empty token between **. However, the output is 4 with token Token1 = RMR Token2 = CR Token3 = 00101539 Token4 = 0.01 Is there anything I can retrieve the empty token as well?