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