private String copy(final char[] array,final int start,final int end){
  StringBuilder text=new StringBuilder();
  for (int j=start; j < end; j++) {
    text.append(array[j]);
  }
  return text.toString();
}

private String copy ( final char [ ] array , final int start , final int end ) { StringBuilder text = new StringBuilder ( ) ; for ( int j = start ; j < end ; j ++ ) { text . append ( array [ j ] ) ; } return text . toString ( ) ; }
copies the specified interval of characters for the array .
