Here you can find the source of arrayAsString(String[] stringArray)
Parameter | Description |
---|---|
stringArray | The array to convert to a String. |
public static String arrayAsString(String[] stringArray)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w . j a v a 2 s. c o m*/ * Converts an array to a String. * <p> * No delimiter (separator) character is appended. * * @param stringArray The array to convert to a String. * @return The array converted to a String. */ public static String arrayAsString(String[] stringArray) { String s = ""; for (int i = 0; i < stringArray.length; i++) { s += stringArray[i]; } return s; } }