Here you can find the source of slice(String[] strings, int begin, int length)
public static String[] slice(String[] strings, int begin, int length)
//package com.java2s; /*/*from w w w .j av a2 s . c om*/ * Hibernate, Relational Persistence for Idiomatic Java * * License: GNU Lesser General Public License (LGPL), version 2.1 or later. * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>. */ public class Main { public static String[] slice(String[] strings, int begin, int length) { String[] result = new String[length]; System.arraycopy(strings, begin, result, 0, length); return result; } public static Object[] slice(Object[] objects, int begin, int length) { Object[] result = new Object[length]; System.arraycopy(objects, begin, result, 0, length); return result; } }