Convert from Byte array to hexadecimal string
public class Main { public static void main(String[] args) throws Exception { int i = Integer.valueOf("1234A", 16).intValue(); // or i = Integer.parseInt("BBA", 16); } }