Array.length: A property (not a method) that returns the number of elements in the array.
How to apply it: Use arr.length (no parentheses) as the loop bound; common exam error uses arr.length().
Course: AP Computer Science A · Unit: Array
Practice questions about Array.length on AimFive — get rubric-based feedback showing exactly which points you earned.
AP and Advanced Placement are trademarks of College Board. AimFive is not affiliated with or endorsed by College Board.