I need an array that I can determine its size from the start and if it has no more empty spaces then increase its size by X. For example:
X
int arrayS
You can use Arrays.copyOf :
intArray = Arrays.copyOf(intArray, intArray.length + additional);