String (List<String> list) { StringBuilder sb = new StringBuilder(); boolean first = true; if (!list.isEmpty()) { for (String s : li<caret>st) { if (!s.isEmpty()) { if (first) { sb.append(s.length()); first = false; } else { sb.append('"').append(s.length()); } } } } return sb.toString().trim(); }