VOOZH about

URL: https://www.geeksforgeeks.org/java/concurrentskiplistset-descendingiterator-method-in-java/

⇱ ConcurrentSkipListSet descendingIterator() method in Java - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

ConcurrentSkipListSet descendingIterator() method in Java

Last Updated : 17 Sep, 2018
The descendingIterator() method of java.util.concurrent.ConcurrentSkipListSet is an in-built function in Java which is used to return an iterator over the elements in this set in descending order. Syntax:
ConcurrentSkipListSet.descendingIterator()
Return Value: The function returns an iterator over the elements in this set in descending order. Below programs illustrate the ConcurrentSkipListSet.descendingIterator() method: Program 1:
Output:
is fun!! Gfg
Program 2:
Comment