Update Scaffold.java

Fixed for loop