Here you can find the source of intToHexLE(int val)
public static String intToHexLE(int val)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from ww w. j av a 2 s.c om*/ * Converts an int to a little-endian hex String. */ public static String intToHexLE(int val) { StringBuilder buf = new StringBuilder(); for (int i = 0; i < 32; i += 8) { String hex = Integer.toHexString((0xff & (val >> i))); if (hex.length() == 1) { buf.append('0'); } buf.append(hex); } return buf.toString(); } }