[java] How to get the current loop index when using Iterator?