Here you can find the source of ToHexString(long[] data)
private static String ToHexString(long[] data)
//package com.java2s; public class Main { private static String ToHexString(long[] data) { StringBuilder sb = new StringBuilder(); for (int i = 0; i < data.length; i++) { sb.append(PadLeft(Long.toHexString(data[i]), 16)); }/* w w w .j a v a 2 s. c o m*/ return sb.toString(); } private static String PadLeft(String source, int length) { while (source.length() < length) { source = '0' + source; } return source; } }