public static List<String> toStringLines(Collection<?> c){
  List<String> lines=new ArrayList<>(c.size());
  for (  Object each : c) {
    lines.add(String.valueOf(each));
  }
  return lines;
}

public static List < String > toStringLines ( Collection < ? > c ) { List < String > lines = new ArrayList < > ( c . size ( ) ) ; for ( Object each : c ) { lines . add ( String . valueOf ( each ) ) ; } return lines ; }
list of string . valueof ( ) of all elements of the collection . the order is specified by the collection ' s iterator .
