remove duplicates from object array data java

Posted by zahir hussain on Stack Overflow See other posts from Stack Overflow or by zahir hussain
Published on 2010-06-12T10:29:52Z Indexed on 2010/06/12 10:32 UTC
Read the original article Hit count: 290

Filed under:
|
|

hi i want to know how to remove duplicates in object.

for example

cat c[] = new cat[10];

c[1].data = "ji"; c[2].data = "pi"; c[3].data = "ji"; c[4].data = "lp";

c[5].data = "ji"; c[6].data = "pi"; c[7].data = "jis"; c[8].data = "lp";

c[9].data = "js"; c[10].data = "psi";

i would like to remove the duplicates value from object array.

thanks and advance

© Stack Overflow or respective owner

Related posts about java

Related posts about array