mirror of
https://github.com/Xevion/contest.git
synced 2025-12-06 01:14:36 -06:00
sortedset interface w example
This commit is contained in:
@@ -148,6 +148,16 @@ s = new TreeSet<Double>();
|
||||
|
||||
### 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
|
||||
|
||||
### ArrayList Class
|
||||
|
||||
Reference in New Issue
Block a user