View Single Post
  #1 (permalink)  
Old 11-08-2007, 11:14 AM
javaplus javaplus is offline
Member
 
Join Date: Nov 2007
Posts: 97
javaplus is on a distinguished road
creating array at runtime
Hi,

I want to create an array at run time. I am not sure about its size when coding. I take an input from user through console and then want to create the array of that size.

Code:
int[] array = new int [5];
In the example above, I mentioned the size which is fine. I just want to know if size can be given later?

Is this possible? How?

Thanks.
Reply With Quote
Sponsored Links