Java List to String listToString(List list)

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

Description

list To String

License

Open Source License

Declaration

public static String listToString(List<String> list) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.util.List;

public class Main {

    public static String listToString(List<String> list) {
        if (list == null || list.size() == 0) {
            return "";
        }/*from  www  . j av  a  2 s .c o m*/
        String temp = list.toString();
        return temp.substring(1, temp.length() - 1);
    }
}

Related

  1. ListToString(List list)
  2. listToString(List list)
  3. listToString(List list)
  4. listToString(List list)
  5. listToString(List list)
  6. listToString(List list)
  7. listToString(List list, String delimiter)
  8. listToString(List list, String expr)
  9. listToString(List list, String separator)