1.6 数组

概念:同一种数据的集合,其实数组就是一个容器。

格式:元素类型[ ]  数组名 = new  元素类型[元素个数或者数组长度]

int [] arr = new int[ ]{3,4,4,5};

int[ ] arr = new int[3];

猜你喜欢

转载自www.cnblogs.com/xiaozhoumo/p/9229112.html
1.6