MCPcopy Create free account
hub / github.com/SeanDragon/protools / join

Method join

common/src/main/java/pro/tools/data/text/ToolStr.java:371–377  ·  view source on GitHub ↗

将字符串数据组拼接一个字符串 @param stringArray @return

(String[] stringArray)

Source from the content-addressed store, hash-verified

369 * @return
370 */
371 public static String join(String[] stringArray) {
372 StringBuilder sb = new StringBuilder();
373 for (int i = 0; i < stringArray.length; i++) {
374 sb.append(stringArray[i]);
375 }
376 return sb.toString();
377 }
378
379 /**
380 * 将字符串数组拼接一个字符串,拼接时数组每个对象都会间隔拼接separator字符串

Callers

nothing calls this directly

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected