Here you can find the source of intToBytesLE(int value)
public static final byte[] intToBytesLE(int value)
//package com.java2s; import java.nio.ByteBuffer; import java.nio.ByteOrder; public class Main { public static final byte[] intToBytesLE(int value) { return ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN) .putInt(value).array();//from w w w. j av a 2 s.c o m } }