Here you can find the source of toInts(byte... bytes)
public static int[] toInts(byte... bytes)
//package com.java2s; public class Main { public static int[] toInts(byte... bytes) { int[] ints = new int[bytes.length]; for (int i = 0; i < ints.length; i++) { ints[i] = toInt(bytes[i]);//from w w w. j av a 2 s . c o m } return ints; } public static int toInt(byte byteValue) { return byteValue & 0x000000FF; } }