Here you can find the source of intArray2HexString(int[] intArray)
public static String intArray2HexString(int[] intArray)
//package com.java2s; //License from project: Open Source License public class Main { public static String intArray2HexString(int[] intArray) { if (intArray == null || intArray.length <= 0) { return ""; }//from www . j a v a2s.c o m StringBuilder sb = new StringBuilder(); for (int i : intArray) { sb.append(String.format("%04x", i)); } return sb.toString(); } }