public static final String makeCompoundField(String delimiter,String... term){
  StringBuilder sb=new StringBuilder();
  for (  String s : term) {
    if (s.length() != 0) {
      if (delimiter != null && sb.length() != 0) {
        sb.append(delimiter);
      }
      sb.append(s);
    }
  }
  return sb.toString();
}

public static final String makeCompoundField ( String delimiter , String ... term ) { StringBuilder sb = new StringBuilder ( ) ; for ( String s : term ) { if ( s . length ( ) != 0 ) { if ( delimiter != null && sb . length ( ) != 0 ) { sb . append ( delimiter ) ; } sb . append ( s ) ; } } return sb . toString ( ) ; }
creates a compound field term using the terms provided .
