Java List to String toStringList(List list)

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

Description

to String List

License

Open Source License

Declaration

public static List<String> toStringList(List list) 

Method Source Code

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

import java.util.*;

public class Main {
    public static List<String> toStringList(List list) {
        List<String> stringList = new ArrayList<>();
        if (list != null) {
            for (Object object : list)
                stringList.add(object != null ? object.toString() : null);
        }/*w  ww. j a  v a2  s . c  o m*/
        return stringList;
    }
}

Related

  1. toStringList(final double[] array)
  2. toStringList(final E[] array)
  3. toStringList(final List list)
  4. toStringList(final String tags)
  5. toStringList(HashSet V)
  6. toStringList(List list)
  7. toStringList(List list)
  8. toStringList(List source)
  9. toStringList(List intList)

  10. HOME | Copyright © www.java2s.com 2016