Java tutorial
//package com.java2s; //License from project: Open Source License public class Main { public static String ConvertHexByteToString(byte byteToConvert) { String ConvertedByte = ""; if (byteToConvert < 0) { ConvertedByte += Integer.toString(byteToConvert + 256, 16) + " "; } else if (byteToConvert <= 15) { ConvertedByte += "0" + Integer.toString(byteToConvert, 16) + " "; } else { ConvertedByte += Integer.toString(byteToConvert, 16) + " "; } return ConvertedByte; } }