Java String from List stringFromList(List list)

Here you can find the source of stringFromList(List list)

Description

Converts (any) list into a string, useful with the WebUtils#readURL(String) method

License

Open Source License

Parameter

Parameter Description
list The list

Return

The String

Declaration

public static String stringFromList(List list) 

Method Source Code

//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;
    }
}

Related

  1. stringExistInList(String value, List searchList)
  2. stringFromLines(List lines)
  3. stringfyList(List ls)
  4. stringify(List entries)
  5. stringifyList(List items)
  6. stringList(String prefix, String suffix, String separator, Object... objects)