public class Main {
/**
来 自 n o w j a v a . c o m
**/
public static void main(String[] args) {
char c1, c2;
c1 = 'a';
c2 = 'z';
// Compare character code
if (c1 < c2) {
System.out.println(c1 + " is before " + c2);
} else {
System.out.println(c1 + " is after or equal to " + c2);
}/*nowjava 提供*/
int codec1 = c1; // type casting/conversion
int codec2 = c2; // type casting conversion
/**代码未完, 请加载全部代码(NowJava.com).**/
本文系作者在时代Java发表,未经许可,不得转载。如有侵权,请联系nowjava@qq.com删除。