代码如下,请问两个字符型变量相加是怎么运算的? int c = hw.c1 + hw.c2;输出结果是:77 195; 195是怎么来的??
package HelloWorld;
public class HelloWorld {
//定义两个整型变量
int i = 33;
int j = 44;
//定义两个字符型变量
char c1 = 'a';
char c2 = 'b';
public static void main (String args[]){
//创建对象,对象引用为hw
HelloWorld hw = new HelloWorld();
int n = hw.i + hw.j;
int c = hw.c1 + hw.c2;
System.out.println(n);
System.out.println(c);
}
}