Suppose the ArrayList of Strings arr has a length of 7. If we want to traverse through only its first 4 elements, which enhanced for loop header should we use?

fiveable - celebration pep

Unlock 200k practice questions!

PLUS 40 prep books + AP Cram events with Cram Mode. Everything you need to get that 5 (or whatever score you want!)

Unlock all of Fiveable