AP Computer Science Aeasymcq1 pt
To sum an ArrayList of Integer, use
A.a loop adding each get result to an accumulator
B.the sum method
C.size alone
D.indexOf alone
Accumulation sums the values.
Aa loop adding each get result to an accumulator
Practice more AP Computer Science A questions with full explanations
Practice Unit 7: ArrayList Questions →