Here you can find the source of listToString(List
Parameter | Description |
---|
public static String listToString(List<String> list)
//package com.java2s; //License from project: LGPL import java.util.List; public class Main { /**/*from ww w . ja v a2 s. co m*/ * Converts an array to a String. * @param array: * The array. * @return: * The String. */ public static String listToString(List<String> list) { String text = ""; for (String s : list) { text += s; text += " "; } return text; } }