How to create an int array .array size?
create an int array of dynamic size .array size will be increased as user add values program will have a class that have following properties "count values of array" "capacity of array" and methods are "add()"sort array(),remove(int element),clear(),show(), can anyone make this plzzz
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Akkiraju IvaturiRank #473 · 5.3K reputationPosted Aug 5, 2012, 8:27 PM EDT
List
list.Add(123);
list.Add(456);
int[] myArray = list.ToArray();
This should solve your problem as in C# there is no REDIM statement as in VB.
mohsin ahmad6 reputationPosted Aug 9, 2012, 10:01 AM EDT