ProAnswers.org

How to obtain Array from an ArrayList ?

Array can be obtained from an ArrayList using toArray() method on ArrayList.

            List arrayList = new ArrayList();

            arrayList.add(70);

            Object  a[] = arrayList.toArray();