Java tutorial
//package com.java2s; public class Main { public static String byte2String(byte[] bytes) { StringBuffer buff = new StringBuffer(); for (int i = 0; i < bytes.length; ++i) { if (i != 0) { buff.append(", "); } buff.append(bytes[i]); } return buff.toString(); } }