CharTest2.java



/** char型のデータを取り扱う */
public class CharTest2 {

  /** 処理の開始 */
    public static void main( String[] argv ) {

        char c='a';
        for( int i=0; i<30; i++ ) {
            System.out.println( "char " + c + " code is " + (short)c );
            c++;
        }
    }
}