title: how to remove duplicate values in hashmap
body: <p>i have a hashmap and i am entering values in the hashmap using the same keys.I want to inser the value in the database only if that value is not present in the databse.</p>
  
  <p>here's my code</p>
  
  <pre><code> s11=json_data.getString("phno");
          Iterator myVeryOwnIterator = map.keySet().iterator();
          while(myVeryOwnIterator.hasNext()) {                                              
      String key=(String)myVeryOwnIterator.next();
      String value=(String)map.get(key);
           if(s11.compareTo(value)==0)
           {//String name2 = cursor.getString(cursor.getColumnIndex(s11 ));
           queryValues.put("c",value);
           //Cursor cursr = contentResolver.query(PhoneCONTENT_URI, null, Phone_CONTACT_ID + " = ?",           new String[] { s11 }, null);
           // Toast.makeText(getActivity(),"get particular name", Toast.LENGTH_LONG).show();
           db.insertcontact(queryValues);
           // Toast.makeText(getActivity(),"true", Toast.LENGTH_LONG).show();
           }
           }
  </code></pre>