Java Long Number Array to Hex longArray2HexString(int[] longArray)

Here you can find the source of longArray2HexString(int[] longArray)

Description

long Array Hex String

License

Open Source License

Declaration

public static String longArray2HexString(int[] longArray) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {

    public static String longArray2HexString(int[] longArray) {
        if (longArray == null || longArray.length <= 0) {
            return "";
        }//ww  w .j  av a  2 s.c  o m
        StringBuilder sb = new StringBuilder();
        for (int l : longArray) {
            sb.append(String.format("%08x", l));
        }
        return sb.toString();
    }
}