数组
来源:互联网 发布:sql having 用法 编辑:程序博客网 时间:2024/06/01 21:03
Array
一维数组
二维数组
不规则数组(数组的数组)
一维数组
int[] arr = new int[] {1,2,3};int[] arr = {1,2,3};
二维数组
int[,] arr2 = new int[2,3];int[,] arr2 = new int[,] {{1,2,3},{4,5,6}};
不规则数组(数组的数组)
int[][] j2;int[][] j2 = new int[3][];j2[0] = new int [] {1,2,3};j2[1] = new int [] {1,2,3,4};j2[2] = new int [] {1,2,3,4,5,6};
ArrayList
容量可变数组,只能是一维数组using System.Collections;ArrayList arr = new ArrayList();string str1;arr.Add(str1);for(int i = 0; i<arr.Count; i++)Console.WriteLine(arr[i]);
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- 数组
- ALSA toos-aplay的使用
- 在Java Swing中显示HTML网页,并能响应链接
- As3中删除数组的重复值
- 第4章 函数与程序结构(笔记)
- Java list 遍历
- 数组
- 第5章 指针和数组(笔记)
- web面试中,遇到无数次的问题“无状态的HTTP协议如何提供有状态的连接”?
- Jquery 获取当前链接所在行的其它表格数据
- gEcrit 2.8.1发布 Python源代码编辑器
- 第6章 结构(笔记)
- android中的AlertDialog.Builder
- 随机读取不重复的多条数据
- Redis几个认识误区