Here you can find the source of asString(final String[] array)
public static String asString(final String[] array)
//package com.java2s; //License from project: Open Source License import static java.util.Arrays.copyOfRange; public class Main { private static final String SPACE = " "; public static String asString(final String[] array) { return asString(array, 0); }/*from w w w . ja va2 s.c o m*/ public static String asString(final String[] array, final int start) { if (array == null) { return ""; } return asString(array, start, array.length); } public static String asString(final String[] array, final int start, final int end) { if (array == null || array.length == 0 || start >= end) { return ""; } if (array.length < end) { return asString(array, start); } final String[] part = copyOfRange(array, start, end); return String.join(SPACE, part); } }