title: remove duplicates from object array data java
body: <p>i want to know how to remove duplicates in object.</p>
  
  <p>for example</p>
  
  <pre><code>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"; 
  </code></pre>
  
  <p>i would like to remove the duplicates value from object array.</p>
  
  <p>thanks and advance</p>