AP Computer Science Ahardmcq1 pt
To remove every negative value from an Integer list, use
A.a backward indexed loop with remove
B.a forward indexed loop with remove
C.an enhanced for loop with remove
D.the clear method
Backward traversal avoids skipped elements after shifts.
Aa backward indexed loop with remove
Practice more AP Computer Science A questions with full explanations
Practice Unit 7: ArrayList Questions →