Here you can find the source of toHex(final byte b)
Parameter | Description |
---|---|
b | - The byte to convert |
public static String toHex(final byte b)
//package com.java2s; //License from project: LGPL public class Main { /**/*ww w. j a v a2s. co m*/ * Converts a byte to hexadecimal * * @param b * - The byte to convert * @return String with hexadecimal representation of the byte */ public static String toHex(final byte b) { return String.format("%02X", b); } }