aspose file tools
The moose likes Beginning Java and the fly likes Question about working with arrays Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Question about working with arrays" Watch "Question about working with arrays" New topic
Author

Question about working with arrays

Tom Patrick
Ranch Hand

Joined: Oct 24, 2000
Posts: 30
can you dynamically change the size of an array?
For example if you create an array and store 5 values in it, and then want to add 3 more values... can you do that?
Pat Barrett
Ranch Hand

Joined: Jan 03, 2001
Posts: 63
Hello,
The short answer is no, but you can get that type of behavior by using an ArrayList or a Vector.
hth.
Pat B.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: Question about working with arrays
 
Similar Threads
return value???
Assigning String[] to multiple variables
Array - Security hole
Assign JavaScript variable to Java variable
boolean array