mirror of
https://github.com/Xevion/contest.git
synced 2025-12-06 15:14:40 -06:00
sortedset interface w example
This commit is contained in:
@@ -148,6 +148,16 @@ s = new TreeSet<Double>();
|
|||||||
|
|
||||||
### SortedSet Interface
|
### SortedSet Interface
|
||||||
|
|
||||||
|
SortedSet is an extension of the [Set](#set-interface) interface and provides a completely ordered list of elements contrary to the unordered parental [Set](#set-interface) interface.
|
||||||
|
|
||||||
|
The SortedSet interface is arranged in **ascending order**, and provides additional methods that assist with this differing *ordered* methodology.
|
||||||
|
|
||||||
|
SortedSet is implemented by one class, [TreeSet](#treeset-class).
|
||||||
|
|
||||||
|
```java
|
||||||
|
SortedSet s = new TreeSet();
|
||||||
|
```
|
||||||
|
|
||||||
## Classes
|
## Classes
|
||||||
|
|
||||||
### ArrayList Class
|
### ArrayList Class
|
||||||
|
|||||||
Reference in New Issue
Block a user