Skip to Main Content

Java Programming

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!

how to remove duplicate values from a string array and store in new array?

807591May 29 2008 — edited May 29 2008
Hi,

I have a String array with the following values: 150, 150, 100, 150, 125, 100

How can I remove the duplicate values, and store the unique values in another String array? Sample code would be really appreciated.

Thanks,
Rishi
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 26 2008
Added on May 29 2008
6 comments
459 views