摘要:
public class Array<E> { private E[] data; private int size; // 构造函数,传入数组的容量capacity构造Array public Array(int capacity){ data = (E[])new Object[capacity 阅读全文
摘要:
public class Array<E> { private E[] data; private int size; // 构造函数,传入数组的容量capacity构造Array public Array(int capacity){ data = (E[])new Object[capacity 阅读全文
摘要:
package com.lll.demo03; public class Array { private int[] data; private int size; // 构造函数,传入数组的容量capacity构造Array public Array(int capacity) { data = 阅读全文