Here you can find the source of subStringArray(String in[], int start, int end)
Parameter | Description |
---|---|
in | a parameter |
start | a parameter |
end | a parameter |
public static String[] subStringArray(String in[], int start, int end)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w.j a va 2 s. c om*/ * Return a subset of an array. * * @param in * @param start * @param end * @return */ public static String[] subStringArray(String in[], int start, int end) { String[] ret = new String[end - start]; int j = 0; for (int i = start; i < end; i++) { ret[j++] = in[i]; } return ret; } }