package 数据类型;//char变量class CharDemo { public static void main(String args[]){ char ch1,ch2; ch1 = 88;//88是ASCII码(Unicode码也一样)用来代表字母X ch2 = 'Y'; System.out.print("ch1和ch2:"); System.out.println(ch1 + "" + ch2); }
}
posted on 2008-04-11 14:32 dripstone 阅读(172) 评论(0) 编辑 收藏
Powered by: BlogJava Copyright © dripstone