public class SimpleSortedList
extends java.lang.Object
There are some faults in the method insert
.
Constructor and Description |
---|
SimpleSortedList()
This constructs an empty list.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Comparable |
get_spec()
A specification for
get . |
java.lang.Comparable |
get()
Return and remove the greatest element from the list, if it is
not empty.
|
void |
insert(java.lang.Comparable x)
This inserts a new element into the list.
|
public void insert(java.lang.Comparable x)
public java.lang.Comparable get()
public java.lang.Comparable get_spec()
get
.