Update Iterator.java

added getters and setters