code: public static StringBuffer join( String glue, String[] strings, int first, int last )
    {
      StringBuffer buf = new StringBuffer();
      for( int i = first; i <= last; i++ )
      {
        String s = strings[i];
        if( i > first )
        {
          buf.append( glue );
        }
        buf.append( s );
      }
      return buf;
    }
docs: Takes a string 'glue' and array of strings, and returns a StringBuffer containing the strings
  between the specified indices (inclusive) joined with the glue between each of them. The strings are joined in order
  
  @param glue    The glue string
  @param strings The strings to join
  @param first   The index of the first string to join
  @param last    The index of the last string to join
  
  @return a StringBuffer