troelssmit
Programmer
Hi,
How can I declare an array of a datatype, whose size might have to change during program execution ?
- int[8] myint; // can't cange size
- int[] myint = new {8,7,6,5,4,3,2,1} //can't change size
- ArrayList myint = new ArrayList(); //can hold various kind of object, and so is giving my program an overhead. I only need one datatype.
How can I declare an array of a datatype, whose size might have to change during program execution ?
- int[8] myint; // can't cange size
- int[] myint = new {8,7,6,5,4,3,2,1} //can't change size
- ArrayList myint = new ArrayList(); //can hold various kind of object, and so is giving my program an overhead. I only need one datatype.