Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

avoid duplicate strings

807601Apr 9 2008 — edited Apr 11 2008
I am trying to avoid duplicate string a set of values. Instead of collecting strings in a string array and then going through the loop to find out whether the string exists already in the list or not, I am looking for another possibility. I am sure that arrayList allows duplicate strings. Is there any other possibility which doesn't allow duplicte strings or entry? Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 9 2008
Added on Apr 9 2008
9 comments
292 views