如何把一个 Array 复制到 ArrayList 里?
2013-04-22 17:53
295 查看
View Code
using System; using System.Collections; namespace CatMouseMaster { class Program { static void Main(string[] args) { string[] array = { "2345" }; ArrayList arraylist = new ArrayList(); for (int i = 0; i < array.Length; i++) { arraylist.Add(array.GetValue(i)); } for (int i = 0; i < arraylist.Count; i++) { Console.Write(arraylist[i]); } } } }
相关文章推荐
- 如何把一个array复制到arrayList里
- 如何把一个array复制到arrayList里
- java中如何把一个array复制到arrayList里
- 如何把一个Array 复制到ArrayList中?
- 如何把一个array复制到arrayList里?
- 在Java中如何将一个数组Array转换为ArrayList
- 如何将Array复制到ArrayList里面
- 如何把一个Array放到一个ArrayList中
- 如何只复制一个表结构
- js如何判断一个对象是不是Array?
- js如何判断一个对象是不是Array?
- c语言中如何把一个文件中的内容复制到另外一个文件中的代码
- 如何将String类型的数组转换成ArrayList(How to convert a string array to arraylist)(转)
- Action script如何复制一个Bitmap对象
- INFORMIX如何通过TRIGGER实现复制同一个表的一个字段到另外一个字段
- 如何将不用系统函数将一个文本复制
- 如何深度复制一个javascript对象
- 如何在sql server中复制一个数据库
- SQLServer——如何完整地复制一个数据库
- js中如何复制一个对象并获取其所有属性和属性对应的值