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