Tag: collections


Collections It is an utility class present in java.util package. It defines several utility methods for collection implemented class object. Sorting a list public static void sort(List l), to sort the elements of List, according to natural sorting order. In this case compulsory Objects should be Homogeneous & comparable otherwise we will get ClassCastException. The […]

Enhancement 1.6 version

Enhancement Sun people introduces, the following 2 interface in 1.6 version as the part of collection Framework. 1) NavigableSet 2) NavigableMap. NavigableSet It is the child interface of SortedSet, which defines several methods to support navigation. Ceiling(e): It returns the lowest element, which is greater than equal to e. Higher(e): Returns the lowest element which […]