list中remove的使用方法
public Object remove()
作用是移除LinkedList对象的第一个元素..
返回的是被移除的那个元素.
或者用 public Object remove(int index);
作用是移除LinkedList对象中索引号为index的元素..
返回的是被移除的那个元素.
还有 public boolean remove(Object o)
作用是移除LinkedList对象中值为o的元素..
移除成功返回true,否则返回false
list中remove的使用方法
public Object remove()
作用是移除LinkedList对象的第一个元素..
返回的是被移除的那个元素.
或者用 public Object remove(int index);
作用是移除LinkedList对象中索引号为index的元素..
返回的是被移除的那个元素.
还有 public boolean remove(Object o)
作用是移除LinkedList对象中值为o的元素..
移除成功返回true,否则返回false