1public static void compareCharacters(char c1,char c2){
2 int cmp=Character.compare(c1,c2);
3 if(cmp>0){
4 System.out.println(c1+">"+c2);
5 }else if(cmp<0){
6 System.out.println(c1+"<"+c2);
7 }else{
8 System.out.println(c1+"="+c2);
9 }
10}