Java tutorial
//package com.java2s; //License from project: Apache License import java.math.BigInteger; public class Main { public static int byteArrayToInt(byte[] bytes) { return new BigInteger(bytes).intValue(); } }