> **Possible Duplicate:**
> [Java - Distinct List of Objects](https://stackoverflow.com/questions/1019854/java-distinct-list-of-objects)
i have a sorted array of huge size (around 3000 strings) ,
i need to create an object for each distinct string ,
therefore i need create an array of objects with the size equal to distinct strings in the original array.
Thanks Does : stackoverflow.com/questions/1019854/â€¦ do what you need ?
以上就是Get number of distinct elements in a sorted array的详细内容，更多请关注web前端其它相关文章！