yep.
my comment is that you can't make it work with for-each.
you must use for-to