public class IntList
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<java.lang.Integer> |
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.
|