Here you can find the source of fromIntToByteArray(int value)
public static byte[] fromIntToByteArray(int value)
//package com.java2s; //License from project: Apache License public class Main { public static byte[] fromIntToByteArray(int value) { return new byte[] { (byte) (value >>> 24), (byte) (value >>> 16), (byte) (value >>> 8), (byte) value }; }//from www.j a v a2 s .c o m }