Hi All,
I have a string of account numbers and names separated by a comma.
123 [TEST1], 456 [TEST2], 789 [TEST3], 0123 [TEST4]
I want to put the accounts to a vector. Problem is my code only loads two of the accounts. Below is my code.
Any help would be most appreciated.
TIA,
Tim
I have a string of account numbers and names separated by a comma.
123 [TEST1], 456 [TEST2], 789 [TEST3], 0123 [TEST4]
I want to put the accounts to a vector. Problem is my code only loads two of the accounts. Below is my code.
Any help would be most appreciated.
Code:
...
StringTokenizer strAvailAccts = new StringTokenizer(availAccts, ",");
System.out.println("strAvailAccts count... " + strAvailAccts.countTokens());
while (strAvailAccts.hasMoreTokens()) {
availAcctsText.addElement(strAvailAccts.nextToken());
System.out.println("strAvailAccts " + strAvailAccts);
}
...
TIA,
Tim