In a For Each loop the term ("value") always comes before the array ("values").
Because as the For Each loop iterates through the code it prints each each value on its own line.
Remember, the last section of the traditional for loop does not have the semicolon (";").
The else statement should have the counter, but the if statement should not . If the values shift down when a value is removed, then the counter should not increase, and the value that is shifted down to counter should be evaluated.
Yes, this method is written correctly, and will remove all multiples of 3 in an ArrayList. B) No, this method is not written correctly, as the counter in the else statement will skip the next value, as the values will shift down in the ArrayList.