I always have had trouble translating an enhanced for loop into a standard for loop. Here is the enhanced for loop that I want to change into a standard for loop structure:
for (Thing cp: getPerson().getEnemy().getMinions()) { if (cp.canMoveTo(this.getLocation()) && cp.getLocation() != null) { return true; } } return false; } How can I change this into a standard for loop?
getMinions()?