Is there a way to name an array from another variable.
If I ask for a name and they give it, can I then use the name from that variable to create a new array named after their name?
i.e. name=john (and use this to create array) int john = new int;
All help is very much appreciated.
Curious... I asked a very similar question a few days ago and the answer is no. The Java compiler needs to resolve variable names at compile time.
also answered in the OP's cross-post in the sun java forums.
New To Java - Naming Arrays
@OP: don't cross post. If you have a question/problem/doubt post it on one forum. If you don't get an answer, then you can post your question on another forum. Cross posting really irritates people (like me).
And me too. Why don't those people wait for a moment and until someone answering to that. Actually they are in hurry, looking the answer in a second. And don't like to read anything as well.