J
joe
I am trying to track counts of values - I guess an 2-dimn array would be the
way to go?
Basically I want a string in the first position and an integer in the
second:
"This strValue", 5
"That strValue", 21
"Other strValue", 2
....
and i don't know what the values are, nor how many values there will be, so
the array will have to grow as I process the incoming data.
I also need to grab a value from my data stream, look it up in this array,
if its there, bump the value by one - if its not here, grow the array and
put a one to the value.
I'm trying to find out if this should be done in an array, a collection?, or
other.
From searching and reviewing all the sample code out there is confusing me I
guess.
Any help appreciated. Thanks, joe
way to go?
Basically I want a string in the first position and an integer in the
second:
"This strValue", 5
"That strValue", 21
"Other strValue", 2
....
and i don't know what the values are, nor how many values there will be, so
the array will have to grow as I process the incoming data.
I also need to grab a value from my data stream, look it up in this array,
if its there, bump the value by one - if its not here, grow the array and
put a one to the value.
I'm trying to find out if this should be done in an array, a collection?, or
other.
From searching and reviewing all the sample code out there is confusing me I
guess.
Any help appreciated. Thanks, joe