public int indexOf(int o) { IntListIterator e = listIterator(); while (e.hasNext()) if (o == e.next()) return e.previousIndex(); return -1; }