AP Computer Science Amediummcq1 pt

Which method converts an ArrayList of Integer to an int array?

A.none; a loop must copy the values
B.list.toArray()
C.list.toIntArray()
D.list.copyTo()

Explanation

Core Concept

There is no direct conversion method.

Correct Answer

Anone; a loop must copy the values

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 →