+ 1
Array or ArrayList
Is this got different function between array and arraylist? When should we use array and when should we use arraylist?
1 ответ
+ 10
An array is static, meaning that you can't put more values to it once it is initialised.
An array list can be extended dynamically (down in the API the stuff with putting everything to a new bigger array is handled for you, so you don't need to take care of this).