Fixed java 101 for loop error.