如题所述
代码如下所示
public class Test{public static void main(String[] arg){
int length = 0;
Scanner scanner = new Scanner(System.in);
length = scanner.nextInt();
int[] intArray = new int[length];//定义length大小数组
scanner.close();
}
}
温馨提示:答案为网友推荐,仅供参考