Code example for LinkedList

Methods: iterator

0
    public synchronized boolean remove(T t) {
        return list.remove(t);
    } 
 
    public Iterator<T> iterator() {
        return list.iterator();
    } 
 
    public Object[] currentState() {
        return new Object[]{list};
    } 
 
    public void restoreState(Object[] objects) {
        list = (LinkedList) objects[0];
    } 
 
    public int size() { 
        return list.size();
    } 
 
    public void clear() {