Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
How do I loop a stringlist and count the number of occurances of a letter in each string list item. If the following is a string list: 0 aaaaaaaaaa 1 bbbbbbaabb 2 ccccaccccc
how do I get the count of a’s like listitem[0]=10 listitem[1]=2 listitem[2]=1
thanks
Try a Java service for looping each string list and check for the character and increment the count if it is found for the list.
Use a FLOW loop step to iterate over the list. Create a Java service to count the number of times a particular character appears. Call that service from within the loop. You can put the results of each count in the output list of the loop.
ditto