code: private static void appendRange(
          StringBuilder sb, DoubleTuple tuple, 
          Locale locale, String format, int min, int max)
      {
          for (int i=min; i<max; i++)
          {
              if (i > min)
              {
                  sb.append(", ");
              }
              if (locale != null && format != null)
              {
                  sb.append(String.format(locale, format, tuple.get(i)));
              }
              else
              {
                  sb.append(String.valueOf(tuple.get(i)));
              }
          }
      }
docs: Append the string representation of the specified range of the given
  tuple to the given string builder
  
  @param sb The string builder
  @param tuple The tuple
  @param locale The locale. If this is <code>null</code>, then a
  canonical string representation of the elements will be used.
  @param format The format. If this is <code>null</code>, then a
  canonical string representation of the elements will be used.
  @param min The minimum index to append, inclusive
  @param max The maximum index to append, exclusive