int[] array; int index;   array = new int[sizes.length]; for (index = 0; index < sizes.length; index++) array[index] = sizes[index];   return array;
return (int[]) sizes.clone();
  public int[] getSizes()  {    int[] array;    int index;    // Create new array.    array = new int[sizes.length];    for (index = 0; index < sizes.length; index++)      array[index] = sizes[index];    // Return newly created array.    return array;  }