Joins the given list of strings using the given delimiter delim
(List<String> list, String delim)
| 211 | * Joins the given list of strings using the given delimiter delim |
| 212 | */ |
| 213 | public static String join(List<String> list, String delim) { |
| 214 | |
| 215 | StringBuilder sb = new StringBuilder(); |
| 216 | |
| 217 | String loopDelim = ""; |
| 218 | |
| 219 | for (String s : list) { |
| 220 | |
| 221 | sb.append(loopDelim); |
| 222 | sb.append(s); |
| 223 | |
| 224 | loopDelim = delim; |
| 225 | } |
| 226 | |
| 227 | return sb.toString(); |
| 228 | } |
| 229 | |
| 230 | public static long parseFromSize(String str) { |
| 231 | if (str == null || str.isEmpty()) { |