public class ArrayListI
extends java.lang.Object
| Constructor and Description |
|---|
ArrayListI()
Creates a new, empty ArrayList of integers.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(int value)
Adds a value.
|
int |
get(int index)
Gets the value at the specified position.
|
int |
size()
Gets the size of this ArrayList.
|
int[] |
toArray() |
public void add(int value)
value - integer valuepublic int get(int index)
index - positionpublic int size()
public int[] toArray()