Use range loops where possible