Skip to content

Tag Archives: Java-NavigableSet

The java.util.NavigableSet.addAll(Collection C) method is used to append all of the elements from the mentioned collection to the existing NavigableSet. The elements are added randomly… Read More
The add() method of NavigableSet in Java is used to add a specific element into a NavigableSet collection. The function adds the element only if… Read More
The java.util.NavigableSet.isEmpty() method is used to check if a NavigableSet is empty or not. It returns True if the NavigableSet is empty otherwise it returns… Read More
The Java.util.NavigableSet.clear() method is used to remove all the elements from a NavigableSet. Using the clear() method only clears all the element from the NavigableSet… Read More
The descendingIterator() method of NavigableSet interface in Java is used to return an iterator over the elements in this set, in descending order. This iterator… Read More
The floor() method of NavigableSet interface in Java is used to return the greatest element in this set less than or equal to the given… Read More
The higher() method of NavigableSet interface in Java is used to return the least element in this set strictly greater than the given element, or… Read More
The pollLast() method of NavigableSet interface in Java is used to retrieve and remove the last (highest) element, or returns null if this set is… Read More
The pollFirst() method of NavigableSet interface in Java is used to retrieves and removes the first (lowest) element, or returns null if this set is… Read More
The ceiling() method of NavigableSet interface in Java is used to return the least element in this set greater than or equal to the given… Read More
The iterator() method of NavigableSet interface in Java is used to return an iterator over the elements in this set, in ascending order. This iterator… Read More
The lower() method of NavigableSet interface in Java is used to return the greatest element in this set strictly less than the given element, or… Read More
The headSet() method of NavigableSet interface in Java is used to return a view of the portion of this set whose elements are less than… Read More
The headSet() method of NavigableSet interface in Java is used to return a view of the portion of this set whose elements range from fromElement… Read More
The descendingSet() method of NavigableSet interface in Java is used to return a reverse order view of the elements contained in this set. The descending… Read More

Start Your Coding Journey Now!