10
:1.System.out.println(data)System.out.print(data)txt
this is the same code. After I get the data, I will not convert it to char type, but directly str+=data, it. This is the output of null,. If I convert it to char type str+= (char) data, I will be able to splice the read data into strings. Why? I think if I don"t convert char, I can at least put the int value together?
although I can avoid these practical tasks, I still want to ask the deep-seated reason, because I can get the answer.