3:13 pm - Thursday December 17, 5908

HashMap example programs and Tutorial in java

CANDID INDUSTRIAL TRAINING -- CHENNAI
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

BACK

  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()

BACK

 

Filed in: Java Examples

Comments are closed.