AP Computer Science Aeasymcq1 pt

Which statement appends a new element at the end of list?

A.list.add(value)
B.list.set(value)
C.list.get(value)
D.list.remove(value)

Explanation

Core Concept

One-argument add appends.

Correct Answer

Alist.add(value)

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 →