1
int a[] = new int[5]; // you can replace 5 with other variable
2
public class Hello {
public static B
}{
int a = Hello.B;
}
int a[] = new int[5]; // you can replace 5 with other variable
2
public class Hello {
public static B
}{
int a = Hello.B;
}
int[] numbers;
number = new int[6];
如果你的动态的意义是在程序中动态创建所须大小的array, 可以实现如下
int[] numbers;
int dimension;
dimension = 6;
numbers = new int[dimension];
如果你的动态的意义是象JScript中定义一个array variable, 然后任意的dimension都可以, 那你需要自己create一个MyArray class去实现它.