Microsoft Developer Network > 포럼 홈 > 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일 화요일 오후 5: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??