package com.alexfu.sqlitequerybuilder.utils;

public class StringUtils {
  public static String join(CharSequence delimiter, String... array) {
    return join(delimiter, (Object[]) array);
  }

  public static String join(CharSequence delimiter, Object... array) {
    StringBuilder sb = new StringBuilder();
    boolean firstTime = true;
    for (Object object : array) {
      if (firstTime) {
        firstTime = false;
      } else {
        sb.append(delimiter);
      }
      sb.append(object);
    }
    return sb.toString();
  }
}

@@ -307,134 +307,83 @@
 ();%0A
+%0A
     
-boolean firstTime = true;%0A    for (Object object : array) %7B%0A      if (firstTime) %7B%0A        firstTime = false;%0A      %7D else
+for (int i = 0, size = array.length; i %3C size; i++) %7B%0A      if (i %3E 0)
  %7B%0A 
@@ -439,14 +439,16 @@
 end(
-object
+array%5Bi%5D
 );%0A 

Change back to classical for loop.