We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5c671f commit ffdfd36Copy full SHA for ffdfd36
src/main/java/de/redstoneworld/redutilities/misc/Array.java
@@ -11,10 +11,10 @@ public class Array {
11
* @param prefix (String) prefix for the result String
12
* @param array (String[]) the String array, which is to be merged
13
* @param separator (String) the separator
14
- * @return the result String; empty if array is empty
+ * @return the result String; the prefix only if the array is empty
15
*/
16
public static String appendStringArray(String prefix, String[] array, String separator) {
17
- if (array.length == 0) return "";
+ if (array.length == 0) return prefix;
18
19
StringBuilder targetString = new StringBuilder(prefix + array[0]);
20
0 commit comments