Here you can find the source of stringFromList(List list)
Parameter | Description |
---|---|
list | The list |
public static String stringFromList(List list)
//package com.java2s; //License from project: Open Source License import java.util.List; public class Main { /**/*from w ww. ja va 2 s.c om*/ * Converts (any) list into a string, useful with the {@link WebUtils#readURL(String)} method * @param list The list * @return The String */ public static String stringFromList(List list) { String val = ""; for (Object o : list) val = val + String.valueOf(o) + "\n"; return val; } }