Here you can find the source of toStringList(List
Parameter | Description |
---|---|
l | The object list |
public static List<String> toStringList(List<Object> l)
//package com.java2s; //License from project: Open Source License import java.util.*; public class Main { /**//from w ww .ja v a 2 s .co m * Turns given object list into a string list * * @param l The object list * @return The string list */ public static List<String> toStringList(List<Object> l) { List<String> l1 = new ArrayList<>(); l.forEach(object -> l1.add(object + "")); return l1; } }