Java List to String toStringList(List list)

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

Description

to String List

License

Apache License

Declaration

public static List toStringList(List list) 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.util.ArrayList;

import java.util.List;

public class Main {

    public static List toStringList(List list) {
        List result = new ArrayList(list.size());
        Object obj;/*from  w  w w. j av a  2s. co  m*/
        for (int i = 0; i < list.size(); i++) {
            obj = list.get(i);
            if (obj != null) {
                result.add(obj.toString());
            }
        }
        return result;
    }
}

Related

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

    HOME | Copyright © www.java2s.com 2016