public class SimpleIntSortedList
extends java.lang.Object
Constructor and Description |
---|
SimpleIntSortedList()
This constructs an empty list.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Integer |
get()
Return and remove the greatest element from the list, if it is
not empty.
|
void |
insert(java.lang.Integer x)
This inserts a new element into the list.
|