Package skyview.util
Class SmartIntArray
- java.lang.Object
-
- skyview.util.SmartIntArray
-
public class SmartIntArray extends java.lang.Object
this class allows you to build an array as you go.
-
-
Constructor Summary
Constructors Constructor Description SmartIntArray()
SmartIntArray(int initialSize)
SmartIntArray(int initialSize, int growthSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(int i)
add element (integer) to array , check size and increase it if necessaryint[]
toArray()
trim array before return
-