StringBuffer output = new StringBuffer(); Iterator i = tokens.iterator(); while (i.hasNext()) { output.append(i.next().toString()); }
StringBuilder output = new StringBuilder(getClass().getName()); output.append("[tokens="); output.append(tokens); output.append(", formatData="); output.append(formatData); output.append(", defaultCenturyStart="); output.append(defaultCenturyStart); output.append(", defaultCentury="); output.append(defaultCentury); output.append(", pattern="); output.append(pattern); output.append(", serialVersionOnStream="); output.append(serialVersionOnStream); output.append(", standardChars="); output.append(standardChars); output.append("]");
  public String toString()   {    StringBuffer output = new StringBuffer();    Iterator i = tokens.iterator();    while (i.hasNext()) {      output.append(i.next().toString());    }    return output.toString();  }