Here you can find the source of printByteArray(byte[] input)
public static void printByteArray(byte[] input)
//package com.java2s; public class Main { public static void printByteArray(byte[] input) { for (int i = 0; i < input.length; i++) { System.out.format("%02X ", input[i]); }//from w ww .jav a 2 s . c om System.out.println(); } }