- 博客(2)
- 收藏
- 关注
原创 JAVA数组,对象,内存问题
Java数组问题《李刚疯狂Java》笔记Java数组是静态的Java数组变量是引用类型变量,并不是数组本身,而是指向堆内存中的数组对象。Java不能同时使用静态初始化和动态初始化数组数组对象和数组变量数组对象是堆内存中连续分配的空间,而数组变量是引用(类似指针的职责)main 方法声明的变量属于局部变量,存在栈中,而数组元素作为数组对象保存在堆内存中。###拓...
2019-04-12 13:32:36
457
原创 Leetcode第一天:towSum
Leetcode day1by jojoflywTwo Sumtag: array ,easyGiven an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input would have...
2019-04-09 22:45:02
240
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅