List list = new ArrayList();
for(int i=0; i < 20; i++)
list.add(System.nanoTime());
//ArrayList to Array;
Long[] mArray = new Long[list.size()];
for(int i=0; i< mArray.length; i++)
mArray[i] = (Long) list.get(i) ;
System.out.println(list.size()+ " " + list.toString());
System.out.println(Arrays.toString(mArray));