sortedset interface w example

This commit is contained in:
Xevion
2020-01-29 20:41:40 -06:00
parent 831988db65
commit 44343c2409

View File

@@ -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