标签:个数 strong 数组 new highlight int 数据 lenovo ace
数组概念:
同一种类型数据的集合,实际数组也是一个容器。
定义方式:
定义方法1:元素类型 [] 数组名 =new 元素类型 [数组元素个数或数组长度]
如 int [] arry =int [3]
定义方法2:指定初始值,没有指定数组的长度,但是系统为自动决定
如 String[] computers = {"Dell", "Lenovo", "Apple", "Acer"};或 String[] computers = String[] {"Dell", "Lenovo", "Apple", "Acer"}
标签:个数 strong 数组 new highlight int 数据 lenovo ace
原文地址:http://www.cnblogs.com/paulwinflo/p/7815000.html