FileDocCategorySizeDatePackage
UnicodeChars.javaAPI DocExample717Sun Feb 22 12:25:46 GMT 2004None

UnicodeChars

public class UnicodeChars extends Object
Conversion between Unicode characters and Strings.
author
Ian F. Darwin, http://www.darwinsys.com/
version
$Id: UnicodeChars.java,v 1.5 2004/02/22 18:25:46 ian Exp $

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

		//+
		StringBuffer b = new StringBuffer();
		for (char c = 'a"; c<'d"; c++) {
			b.append(c);
		}
		b.append('\u00a5");	// Japanese Yen symbol
		b.append('\u01FC");	// Roman AE with acute accent
		b.append('\u0391");	// GREEK Capital Alpha
		b.append('\u03A9");	// GREEK Capital Omega

		for (int i=0; i<b.length(); i++) {
			System.out.println("Character #" + i + " is " + b.charAt(i));
		}
		System.out.println("Accumulated characters are " + b);
		//-