SkippingListView extends AbstractList<T> { @Override public int size() { return size; } SkippingListView(List<T> list, int... skips); @Override T get(int index); @Override int size();  }
@Test public void test4() { SkippingListView<Integer> view = new SkippingListView<Integer>(list, 1, 2, 3, 6); assertEquals(6, view.size()); assertArrayEquals(new Integer[] {0, 4, 5, 7, 8, 9}, view.toArray(new Integer[6])); }