If you want to obtain an Object array from anArrayList, you have to do this:Object[] cObject = showList.toArray();