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

Explanation

Core Concept

Accumulation sums the values.

Correct Answer

Aa loop adding each get result to an accumulator

More Unit 7: ArrayList practice questions

Try a random question →

Practice more AP Computer Science A questions with full explanations

Practice Unit 7: ArrayList Questions →