数组的申请

int[] a = new int[5];//申请一个长度为5的数组
int[] a = new int[] { 1, 2, 3, 4, 5, 6 };//申请一个数组 直接给他初始化

 

string 的声明

string str="";//声明string类型 str 并且赋值为空

 

string数组的声明

string[] a = new string[] { "1111111101", "11111111102" };

 

申请随机数  以及ArrayList的使用

ArrayList的命名空间     using System.Collections;