//默认长度为0
public LinkedList() {
this.size = 0;
}
//可传入Collection
public LinkedList(Collection<? extends E> var1) {
this();
this.addAll(var1);
}
方法
public E getFirst() {...}
public E getLast() {...}
public E removeFirst() {...}
public E removeLast() {...}
public void addFirst(E e){...}
public void addLast(E e){...}
public boolean remove(Object var){...}