Accessing next element in Treeset in Java

Viewed 2260

Is there any way to access the successor or the predecessor of an element in Treeset of Java. Or is there any way of getting the iterator of a particular element so that we can use iterator.next() to get the next element.

2 Answers
Related