如何学习
1,定制合理的计划 1.自己每天那个固定的时间有时间?或每天要学习几个小时? 2.你的学习主要希望在那个方面有所发展? 3.多长时间学完? 2,每周输出内容 1.写周记记录自己一周学了什么? 2.写出自己的学到的技术点,在那些方面有所提升。增强自己的满足感。 3.,多实践,有时间多敲相关代码。(敲一遍是不够的)
数组的定义
数组定义:通过连续的存储空间,存储相同类型元素的集合。 内存存储:有序->索引递增有序 存储内容:固定->访问高效 可以存储:  不能存储的内存:  看图可知,数组是比较吃内存的。Java的内存回收机制中的标记整理能帮助缓解这个情况。 为什么要从0开始索引: 
数组的创建
1,静态创建 int[] arr=new int[]{1,2,3}; String[] str={“数组”}; 2,动态创建 int[] arr=new int[]
数组的方法
1,arr.length获取数组长度
2,arr[1]获取1位置元素
3,System. out.println (Arrays. tosString(ars));数组转字符串打印。
数组内存分析
局部变量放在栈中,引用对象放在堆中。  数组是不可变的。 数组的长度一旦指定,不可改变。 int[] arr=new int[4]; arr=new int[8];  最后只是指向改变了,原数组并没有变。
循环输出
太简单了直接放截图 
|