Java List to String toStringClassList(List list)

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

Description

to String Class List

License

Apache License

Declaration

public static final ArrayList<String> toStringClassList(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 final ArrayList<String> toStringClassList(List<?> list) {
        ArrayList<String> toRet = new ArrayList<String>();
        for (Object o : list)
            toRet.add(o.getClass().getSimpleName());
        return toRet;
    }//from  www. ja  v  a 2 s . c o m
}

Related

  1. toString(List strings)
  2. toString(List strings)
  3. toString(List list)
  4. toString(List list)
  5. toString(List list)
  6. toStringDelimited(final Iterable list, final String delimiter)
  7. toStringItem(List> itemMapList, String subjectName)
  8. toStringList(Collection strings, String separator)
  9. toStringList(final double[] array)