![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA
Groyal
这个作者很懒,什么都没留下…
展开
-
j = 0时,j = j++的坑
@Test public void Test7() { int j = 0; for(int i = 0;i < 100;i++) { j = j++; } System.out.println(j); } 这个题输出值是0; temp = j; j = j + 1; j = temp. 很懵逼原创 2019-07-13 17:21:58 · 701 阅读 · 0 评论 -
JAVA双向链表
手写双向链表,记不住。。。 public class MyList { private Node first; private Node last; private int size; public void add(Object value) { Node n = new Node(); n.value = value; if(size == 0) { n.prev = n; ...原创 2019-07-16 15:07:31 · 99 阅读 · 0 评论 -
第一次手写List
import java.util.Arrays; public class Test1 { public static void main(String[] args) { MyList A = new MyList(); A.add(11); System.out.println(A.toString()); A.add(12); A.add(13); A.add...原创 2019-07-16 20:36:02 · 106 阅读 · 0 评论