0

can array size changed during runtime??

22nd Sep 2016, 6:56 AM
s.iswarya iswarya.s
s.iswarya iswarya.s - avatar
4 ответов
+ 1
No use an arraylist if you want an array with changeable sizes.
27th Sep 2016, 11:04 PM
ryan love
ryan love - avatar
0
it depends on the nested arrays needed by your program.,this mean the size charges as long as you enter more arrays.
22nd Sep 2016, 3:18 PM
Kyei Moses
Kyei Moses - avatar
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.
23rd Sep 2016, 2:55 AM
Catlin
Catlin - avatar
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.
24th Sep 2016, 7:29 AM
Igor