12:02 am - Tuesday March 19, 2019

Treemap 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. Add key value pair to Treemap V put(K key,V value)

2. Retrieve value of given Key in Treemap V get(Object key)

3. Remove a data from treemap by its key V remove(Object key)

4. Clear all elements from treemap  void Clear()

5. Create a copy of treemap Object clone()

6.Get size of Treemap using  int size()

7.To Check First and Last Key in TreeMap using lastkey() & firstkey()

8.Retrieve all values in a Treemap Collection<V> values()

9.Return a view of the portion of this map headMap(K toKey, boolean inclusive)

10.Check whether a key is avilable in Treemap boolean containsKey(Objectkey)





Filed in: Java Examples

Comments are closed.