List<int> intList = new List<int>(10); 1、创建列表 在泛型类List<I>中,必须为声明为列表的值指定类型。ArrayList是一个非泛型列表,它可以将任意Object类型作为其元素。