public Object[] toArray() { Object[] a = new Object[fLength]; toArray0(a); return a; }
public Object[] toArray(Object[] a) { if (a.length < fLength) { Class arrayClass = a.getClass(); Class componentType = arrayClass.getComponentType(); a = (Object[]) Array.newInstance(componentType, fLength); } toArray0(a); if (a.length > fLength) { a[fLength] = null; } return a; }