摘要:
Run/Edit Configurations Configuration/VM options 例如:设置运行内存为:-Xmx3m -Xms3m 阅读全文
posted @ 2019-06-21 17:21
kissrule
阅读(5961)
评论(0)
推荐(0)
摘要:
内存泄漏很详细的文章 https://www.jb51.net/article/92311.htm 阅读全文
posted @ 2019-06-21 17:08
kissrule
阅读(1851)
评论(0)
推荐(0)
摘要:
import java.util.Arrays; import java.util.Iterator; public class ArrayList implements Iterable { public int size; public int current = 0; Object[] objects = new Object[2]; public voi... 阅读全文
posted @ 2019-06-21 16:05
kissrule
阅读(647)
评论(0)
推荐(0)
摘要:
public class ArrayList { public int index = 0; Object[] objects = new Object[2]; public void add(Object o) { //当index超出最初定义数组的长度时,自动扩容 if(index == objects.length){ ... 阅读全文
posted @ 2019-06-21 15:41
kissrule
阅读(673)
评论(0)
推荐(0)
摘要:
https://www.cnblogs.com/chrischennx/p/9610853.html 正确方式 方法一,还是fori,位置前挪了减回去就行了, remove后i--: 方法二,不用ArrayList的remove方法,用Itr自己定义的remove方法,代码如下: 为什么itr自己定 阅读全文
posted @ 2019-06-21 14:18
kissrule
阅读(973)
评论(0)
推荐(0)
摘要:
https://www.cnblogs.com/wanshiming/p/7685684.html 阅读全文
posted @ 2019-06-21 14:05
kissrule
阅读(110)
评论(0)
推荐(0)

浙公网安备 33010602011771号