
数据结构
你叫闹闹
记录自己的学习之路: 一起交流技术
展开
-
两个数据源分页
两个数据源分页计算原创 2022-07-15 18:30:56 · 464 阅读 · 0 评论 -
Array的基本操作
public class Array<E> { private E[] data; private int size; public Array(int capacity){ data=(E[])new Object[capacity]; size=0; } public Array(){ thi...原创 2018-08-19 08:23:45 · 225 阅读 · 0 评论 -
栈的基本操作
首先声明几个要实现的方法 public interface Stack<E> { E pop(); E peek(); void push(E e); int getSize(); boolean isEmpty(); } 紧接着结合动态数组进行包装 public class ArrayStack<E> implements...原创 2018-08-19 14:35:23 · 209 阅读 · 0 评论