public class IntList extends Object
Modifier and Type | Field and Description |
---|---|
private List |
theList
The int are stored as Integer objects here.
|
Constructor and Description |
---|
IntList()
This constructor creates an empty list.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
add(int i)
Adds an element to the list.
|
(package private) boolean |
contains(int i)
Checks if the specified int is already in the list.
|
private List theList