Here you can find the source of byteToHexString(byte b)
Parameter | Description |
---|---|
b | a parameter |
public static Object byteToHexString(byte b)
//package com.java2s; /**//from w ww . j av a2 s . com * Copyright (c) 2010-2018 by the respective copyright holders. * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html */ public class Main { /** * Convert the byte b into an hex String * * @param b * @return */ public static Object byteToHexString(byte b) { return Integer.toHexString(b & 0xFF) + " "; } }