CharTest.java



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

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

        char c='a';
        System.out.println( "char " + c + " code is " + (short)c );
        c='あ';
        System.out.println( "char " + c + " code is " + (short)c );
    }
}