Here you can find the source of subarray(String[] master, int index)
public static String[] subarray(String[] master, int index)
//package com.java2s; // BSD License (http://www.galagosearch.org/license) public class Main { /**//from ww w . j av a 2s . c o m * For an array master, returns * an array containing the last master.length-index elements. */ public static String[] subarray(String[] master, int index) { if (master.length <= index) { return new String[0]; } else { String[] sub = new String[master.length - index]; System.arraycopy(master, index, sub, 0, sub.length); return sub; } } }