Here you can find the source of charToByte(char c)
Parameter | Description |
---|---|
c | char |
public static byte charToByte(char c)
//package com.java2s; public class Main { /** /* w w w . ja v a 2s . c o m*/ * Convert char to byte * * @param c * char * @return byte */ public static byte charToByte(char c) { return (byte) "0123456789ABCDEF".indexOf(c); } }