Here you can find the source of int2bcdByte(int hRadix10, int lRadix10)
private static byte int2bcdByte(int hRadix10, int lRadix10)
//package com.java2s; //License from project: Apache License public class Main { private static byte int2bcdByte(int hRadix10, int lRadix10) { int bcd = ((hRadix10 & 0x0F) << 4) + (lRadix10 & 0x0F); return (byte) bcd; }/*from w ww . ja v a 2 s .c o m*/ }