+ 1
Can we change the size of array ?
3 Answers
+ 5
You can't resize an array in Java. instead you can do this:
YourArray = Arrays.copyOf(YourArray , n);
n is new capacity
yet a better solution is to use ArrayList<T> class instead which resizes automatically
+ 4
yes, you can. in which language do you want to change an array?
0
C java