原文:If you are converting from a byte value b to a char and you don’t want signextension, you must use a bit mask to suppress it. This is a common idiom, so nocomment is necessary:char c = (char) (b & 0xff);没有get到 sign extension的含义!以及为什么这么做就没有sign extension
添加回答
举报
0/150
提交
取消