Here you can find the source of printByte(byte[] bytes)
public static void printByte(byte[] bytes)
//package com.java2s; //License from project: Apache License public class Main { public static void printByte(byte[] bytes) { for (int i = 0; i < bytes.length; i++) { if (i > 0) { System.out.print(","); }/*w w w . j a v a 2 s.c o m*/ System.out.print(bytes[i]); } System.out.println(); } }