package ru.job4j.iterator;

import java.util.Iterator;

public class IteratorArrayMIn implements Iterator<Integer> {
    private final int[] values;

    public int getIndex() {
        return index;
    }

    private int index = 0;

    public IteratorArrayMIn(final int[] values) {
        this.values = values;
    }


    @Override
    public boolean hasNext() {
        return index < values.length;
    }

    @Override
    public Integer next() {
        int rob = values[index++];
        Integer roB = new Integer(rob);
        return roB;
    }
}

@@ -460,17 +460,14 @@
     
-int rob =
+return
  val
@@ -484,68 +484,8 @@
 +%5D;%0A
-        Integer roB = new Integer(rob);%0A        return roB;%0A
     

Correct IteratorArrayMin