Hi All,
Trying to parse a string using StringTokenizer. The line I'm attempting to parse acctNames.elementAt(i) is:
AA%20Test%20Inc%20%5BAAB%5D%20%5B1111111111%5D
Here is my code for parsing:
I'm trying to parse at %5B and return in tempToken AAB. But what is returning is AA. Can someone help me out please.
TIA,
Tim
Trying to parse a string using StringTokenizer. The line I'm attempting to parse acctNames.elementAt(i) is:
AA%20Test%20Inc%20%5BAAB%5D%20%5B1111111111%5D
Here is my code for parsing:
Code:
...
StringTokenizer sTokenizer = new StringTokenizer((String)acctNames.elementAt(i), "%5B");
tempToken = sTokenizer.nextToken();
...
I'm trying to parse at %5B and return in tempToken AAB. But what is returning is AA. Can someone help me out please.
TIA,
Tim