Is there a difference in the runtime of the following two snippets?
SNIPPET 1:
for ( Object obj : collection ) {
step1( obj );
step2( obj );
step3( obj );
}
SNIPPET 2:
for ( Object obj : collection ) {
step1( obj );
}
for ( Object obj : collection ) {
step2( obj );
}
for ( Object obj : collection ) {
step3( obj );
}