Here you can find the source of arrayToString(String in[])
Parameter | Description |
---|---|
in | a parameter |
public static String arrayToString(String in[])
//package com.java2s; //License from project: Open Source License public class Main { /**/* w w w .j a v a 2 s . c o m*/ * Return array string values as blank separated string. * * @param in * @return */ public static String arrayToString(String in[]) { if (in == null) return null; String ret = ""; for (int i = 0; i < in.length; i++) { ret += in[i] + " "; } return ret.trim(); } }