问题:来源于码农翻身公众号
也不知道可以不,看看就好hhhhh
/**
* 自定义的一个模仿ArrayList的类, 你需要实现其中的add, get, remove , 等方法
* @author 刘欣
*/
public class SimpleList<T>{
private Object[] elementData;
private int size=0;
public int size() {
return -1;
}
public SimpleList(){
}
public boolean isEmpty() {
return false;
}
public boolean add(T e) {
return false;
}
public boolean remove(Object o) {
return false;
}
public T get(int index) {
return null;
}
}/**
* 自