获取byte的高四位和低四位1.public static int getHeight4(byte data){//获取高四位 int height; height = ((data & 0xf0) >> 4); return height; } public static int getLow4(byte data){//获取低四位 int low; low = (data & 0x0f); return low; }
1.public static int getHeight4(byte data){//获取高四位 int height; height = ((data & 0xf0) >> 4); return height;}public static int getLow4(byte data){//获取低四位 int low; low = (data & 0