private String join(String[] s,String delimiter){
  StringBuffer buffer=new StringBuffer();
  for (int i=0; i < s.length; i++) {
    buffer.append("'");
    buffer.append(s[i]);
    buffer.append("'");
    if (i < s.length - 1) {
      buffer.append(delimiter);
    }
  }
  return buffer.toString();
}

private String join ( String [ ] s , String delimiter ) { StringBuffer buffer = new StringBuffer ( ) ; for ( int i = 0 ; i < s . length ; i ++ ) { buffer . append ( "'" ) ; buffer . append ( s [ i ] ) ; buffer . append ( "'" ) ; if ( i < s . length - 1 ) { buffer . append ( delimiter ) ; } } return buffer . toString ( ) ; }
join concatenates every string objects found in a string array , separated by the given delimiter
