(Iterable<String> strs, String delim)
| 137 | } |
| 138 | |
| 139 | public static String join(Iterable<String> strs, String delim) { |
| 140 | StringBuilder sb = new StringBuilder(); |
| 141 | for (String str : strs) { |
| 142 | if (sb.length() > 0) { |
| 143 | sb.append(delim); |
| 144 | } |
| 145 | sb.append(str); |
| 146 | } |
| 147 | return sb.toString(); |
| 148 | } |
| 149 | |
| 150 | /** |
| 151 | * Converts an enum value to a printable label but upcasing the first letter |
no test coverage detected