8:51 pm - Saturday April 20, 2019

HashMap example programs and Tutorial in java

Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044


  1.Creating  a clone(duplicate) of HashMap using Object clone

  2.Remove a value from HashMap by its key using  remove(Object key )

  3.Check whether the HashMap is empty boolean isEmpty( )

  4.Change the HashMap to Collection (value) Collection<V> values()

  5.Check whether the key is available in HashMap boolean containsKey(Object key)

  6.Retrieve all Keys from HashMap toSet – Set<K> keySet()

  7.Check whether the value is available in HashMap boolean containsValue(Object value)

  8.Clear all values from the hashMap void clear()



Filed in: Java Examples

Comments are closed.