Microsoft Developer Network > Forenhomepage > Office Live Small Business - General Topics > Create a new object with the name of a variable..
Stellen Sie eine FrageStellen Sie eine Frage
 

FrageCreate a new object with the name of a variable..

  • Dienstag, 21. April 2009 17:37borgrodrick TeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillenTeilnehmermedaillen
     
    Is it possible to create a new object with the name of a variable ??

    For example how can I do something like :

    String x = "hello";
    int[] x = new int[22]; // this is incorrect but I wish to name this new array as the data in string x

    Can anyone help please??