private static byte[] copyOfRange(byte[] from,int start,int end){
  int length=end - start;
  byte[] result=new byte[length];
  System.arraycopy(from,start,result,0,length);
  return result;
}

private static byte [ ] copyOfRange ( byte [ ] from , int start , int end ) { int length = end - start ; byte [ ] result = new byte [ length ] ; System . arraycopy ( from , start , result , 0 , length ) ; return result ; }
copy the elements from the start to the end
