0
can array size changed during runtime??
4 odpowiedzi
+ 1
No use an arraylist if you want an array with changeable sizes.
0
it depends on the nested arrays needed by your program.,this mean the size charges as long as you enter more arrays.
0
If you need to change array size during runtime your best off using a generic collection of the type you want that way elemennts can be removed and resize is taken care of for you instead of manual mess ups like array out of index exceptions.
0
Array's size can't be changed. If you need a bigger array then you create a new bigger array and copy old data from small array into it. Java can do it for you in ArrayList class.