Object (Object[] data) { if (index < data.length) { return data[index++]; // Value of post-increment is used, will be replaced with "return data[index];" } else { throw new NoSuchElementException(); } }