摘要:
The abstract provides a summary of the thesis and often contains the following moves in this order: 1. background to the thesis 2. purpose of the thes 阅读全文
摘要:
``` package stack; public class MyStack { //栈的底层我们使用数组来存储数据 int[] elements; public MyStack() { elements = new int[0]; } //压入元素 public void push(int element) { // 创建一个新的数组 int[] newArr = new int[elemen 阅读全文
摘要:
``` package array; import java.util.Arrays; public class MyArray { // 用于存储数据的数组 private int[] elements; public MyArray() { elements = new int[0]; } // 获取数组长度的方法 public int size() { return elements.len 阅读全文