FileDocCategorySizeDatePackage
StringBufferCommaList.javaAPI DocExample376Wed Jun 16 16:31:46 BST 2004None

StringBufferCommaList

public class StringBufferCommaList extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

		StringTokenizer st = new StringTokenizer("Alpha Bravo Charlie");
		StringBuffer sb = new StringBuffer();
		while (st.hasMoreElements()) {
			sb.append(st.nextToken());
			if (st.hasMoreElements()) {
				sb.append(", ");
			}
		}
		System.out.println(sb);