Java TreeMap.firstEntry() example

 Posted On  | Pooja Mane 

In this java tutorial, You will learn how to use firstEntry() method of TreeMap class.The firstEntry() method is used to return a key-value mapping associated with the least key in this map, or null if the map is empty.

Java 

Java TreeMap.entrySet() example

 Posted On  | Pooja Mane 

In this java tutorial, You will learn how to use entrySet() method of TreeMap class.The entrySet() method is used to return a Set view of the mappings contained in this map. The set's iterator returns the entries in ascending key order. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa.

Java 

Java TreeMap.descendingMap() example

 Posted On  | Pooja Mane 

In this java tutorial, You will learn how to use descendingKeySet() method of TreeMap class.The descendingMap() method is used to return a reverse order view of the mappings contained in this map. The descending map is backed by this map, so changes to the map are reflected in the descending map, and vice-versa.

Java 

Java TreeMap.descendingKeySet() example

 Posted On  | Pooja Mane 

In this java tutorial, You will learn how to use descendingKeySet() method of TreeMap class.The descendingKeySet() method is used to return a reverse order NavigableSet view of the keys contained in this map. The set's iterator returns the keys in descending order. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa.

Java 

Java TreeMap.containsValue(Object value) example

 Posted On  | Pooja Mane 

In this java tutorial, You will learn how to use containsValue(Object value) method of TreeMap class.The containsValue(Object value) method is used to return true if this map, maps one or more keys to the specified value.

Java 

Java TreeMap.containsKey(Object key) example

 Posted On  | Pooja Mane 

In this java tutorial, You will learn how to use containsKey(Object key) method of TreeMap class.The containsKey(Object key) method is used to return 'true' if this map contains a mapping for the specified key.

Java 

Java TreeMap.clone() example

 Posted On  | Pooja Mane 

In this java tutorial, You will learn how to use clone() method of TreeMap class.The clone() method is used to return a shallow copy of this TreeMap instance.But the keys and values themselves are not cloned.

Java 


© technicalkeeda.com 2018

 |  Find us on Google+ |  Rss Feed

Loaded in 0.0307 seconds.