S
Sehboo
All,
I have an arraylist in which I need to add a string, but before I add
I need to make sure that the same string is not already there. Yes, I
could run a for loop to check all the items but I could have thousands
of items and I don't want to run the loop everytime (CPU usage got
upto 100%)....what can I do...to make a faster lookup?
I don't have to use ArrayList...I could pretty much use anything which
will hold the list of strings...
Thanks
I have an arraylist in which I need to add a string, but before I add
I need to make sure that the same string is not already there. Yes, I
could run a for loop to check all the items but I could have thousands
of items and I don't want to run the loop everytime (CPU usage got
upto 100%)....what can I do...to make a faster lookup?
I don't have to use ArrayList...I could pretty much use anything which
will hold the list of strings...
Thanks