code: public static int[] arraySlice(int[] source, int start, int count) {
  
          int[] slice = new int[count];
  
          System.arraycopy(source, start, slice, 0, count);
  
          return slice;
      }
docs: Returns a range of elements of source from start to end of the array.