2014年9月30日
摘要: 3.数组初始化 1.数组是一个固定长度的集合,在初始化大小后就不能改变其长度。 数组分配在堆中,并在栈中存有指向该数组的一个引用。 class Arr { public static void main(String[] args) { int[] a = {1, 2, 3, 4}; int[] b = a; ... 阅读全文
posted @ 2014-09-30 00:38 winlrou 阅读(279) 评论(0) 推荐(0) 编辑