Microsoft 开发人员网络 > 论坛主页 > Office Live Small Business - General Topics > Create a new object with the name of a variable..
提出问题提出问题
 

问题Create a new object with the name of a variable..

  • 2009年4月21日 17:37borgrodrick 用户奖牌用户奖牌用户奖牌用户奖牌用户奖牌
     
    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??