public static char[] copy(final char[] array,final int offset,final int length){
  ensureOffsetLength(array,offset,length);
  final char[] a=length == 0 ? EMPTY_ARRAY : new char[length];
  System.arraycopy(array,offset,a,0,length);
  return a;
}

public static char [ ] copy ( final char [ ] array , final int offset , final int length ) { ensureOffsetLength ( array , offset , length ) ; final char [ ] a = length == 0 ? EMPTY_ARRAY : new char [ length ] ; System . arraycopy ( array , offset , a , 0 , length ) ; return a ; }
returns a copy of a portion of an array .
