byte数组转short值不对啊[解决办法]
public static void main(String[] args) {int i=0xffd0;int s;if (i>0x7fff) {s=-(i-0x8000);} else {s=i;}System.out.println(s);}