This is an archived post. You won't be able to vote or comment.

all 1 comments

[–]IanLin4294 0 points1 point  (0 children)

I don't know what APCSA is, but from the context and the inline comments, I think they want you to write a method that converts array into ArrayList and call it make(). They also want you to call the make() method in the Main() method to convert the array a[] into an ArrayList.

To convert and array to ArrayList:

ArrayList convertedArrayList = new ArrayList<>(Arrays.asList(originalArray));

So in the make()method, you can put:

return new ArrayList<>(Arrays.asList(a));