hi,
>From what i read you have to specify the element of the array when you
>instantiate it. This is assumed that you know the size of the array when you
>create it. Is there a way to instantiate it without specifying the element and
>somewhere down the code you specify it? Any sample and/or pointers is greatly
>appreciated.
example:
int myArray = new int[10]; // the problem is if i dont know the sizeof myarray
how to i instantiate it?
int myArray = new int[]; // netbeans gives an error. <- this is what i would
like to do.
thanks in advance,
Mon
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/javaprogrammingwithpassion?hl=en
-~----------~----~----~----~------~----~------~--~---