Here you can find the source of byteToHexString(Byte b)
Parameter | Description |
---|---|
b | The byte passed in which will be parsed to HEX representation. |
public static String byteToHexString(Byte b)
//package com.java2s; public class Main { /**// www . jav a 2 s .co m * Converts a byte to the HEX String representation. * * @param b The byte passed in which will be parsed to HEX representation. * @return String in HEX notation which represents one byte. */ public static String byteToHexString(Byte b) { return String.format("%02X", b); } }