Fork me on GitHub
摘要: package zy813ture; import java.util.EmptyStackException; public class MyLinkedStack1 { private Node top = new Node(); private class Node { private Object data; private Node next; } /... 阅读全文
posted @ 2018-08-13 23:08 雪人奥特曼 阅读(337) 评论(0) 推荐(0) 编辑
摘要: package zy813ture; public class MyLinkedQueue1 { private Node head; private Node last = head = new Node();//初始化可以设定默认值,形式固定 // private int size; priva 阅读全文
posted @ 2018-08-13 23:07 雪人奥特曼 阅读(284) 评论(0) 推荐(0) 编辑
摘要: package zy813ture; public class MyArrayQueue1 {//双向循环数组 private Object []obj; private int front; private int last; //private int MAXQSIZE; public MyArrayQueue1() { obj = new Object[4]; } ... 阅读全文
posted @ 2018-08-13 23:04 雪人奥特曼 阅读(297) 评论(0) 推荐(0) 编辑