Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java how to change the length of an array

The size of an array cannot be changed after instantiation
If you need to change the size, create a new array and copy the contents
or use an ArrayList which does require a set size
Source by www.tutorialspoint.com #
 
PREVIOUS NEXT
Tagged: #java #change #length #array
ADD COMMENT
Topic
Name
6+2 =