public class SmartIntArray
extends java.lang.Object
Constructor and Description |
---|
SmartIntArray() |
SmartIntArray(int initialSize) |
SmartIntArray(int initialSize,
int growthSize) |
Modifier and Type | Method and Description |
---|---|
void |
add(int i)
add element (integer) to array , check size and increase it if necessary
|
int[] |
toArray()
trim array before return
|