Java arrays can have their size determined at runtime, and not just compilation time (as opposed to arrays allocated by the C stack). However, the size of the array cannot be changed after its creation.
, . :
int argCount = 5;
String test[] = new String[argCount];
An ArrayList .