Java tutorial
//package com.java2s; public class Main { private static void dumpHex(String aTitle, byte[] anArray) { System.err.println(); System.err.println(aTitle); for (int i = 0; i < anArray.length; i++) { System.err.print(Integer.toHexString(anArray[i]) + " "); } System.err.println(); } }