Hi, I am new to java and I need to work with arrays.
I have found some tutorials, but everywhere was something like
int anArray; // allocates memory for 10 integers anArray = new int;
But what if I dont know how long the array will be?
When I tried to do just that:
Without allocating memory, Im getting error:
The local variable anArray may not have been initialized.
Can you please help me?