Here you can find the source of getBCD2(byte[] b, int offset)
public static int getBCD2(byte[] b, int offset)
//package com.java2s; public class Main { public static int getBCD2(byte[] b, int offset) { int ret = (b[offset + 1] & 0x0f); ret += ((b[offset + 1] >>> 4) & 0x0f) * 10; ret += (b[offset] & 0x0f) * 100; ret += ((b[offset] >>> 4) & 0x0f) * 1000; return ret; }// w w w . ja v a 2 s . c om }