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 d40de80 commit cdd7a7bCopy full SHA for cdd7a7b
SimpleAPI/src/main/java/com/bencodez/simpleapi/array/ArrayUtils.java
@@ -324,6 +324,25 @@ public static String makeStringList(ArrayList<String> list) {
324
}
325
return string;
326
327
+
328
+ public static String makeStringList(List<String> list) {
329
+ if (list == null) {
330
+ return "";
331
+ }
332
+ String string = new String();
333
+ if (list.size() > 1) {
334
+ for (int i = 0; i < list.size(); i++) {
335
+ if (i == 0) {
336
+ string += list.get(i);
337
+ } else {
338
+ string += ", " + list.get(i);
339
340
341
+ } else if (list.size() == 1) {
342
+ string = list.get(0);
343
344
+ return string;
345
346
347
public static String pickRandom(ArrayList<String> list) {
348
if (list != null) {
0 commit comments