Users Pricing

forum

Home Forums How to convert ArrayList (ArrayList<T>) from array (T[]) – MindStick

How to convert ArrayList (ArrayList<T>) from array (T[])

Royce Roy 2154 09 Apr 2015

I have an array that is initialized like:

Element[] array = {new Element(1), new Element(2), new Element(3)};

I would like to convert this array into an object of the ArrayList class.

ArrayList<Element> arraylist = ???;

1 Answers

Anonymous User 09 Apr 2015 Accepted Answer
Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md