Java Byte Create toByte(char c)

Here you can find the source of toByte(char c)

Description

to Byte

License

Open Source License

Declaration

private static int toByte(char c) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static final String baseChar = "0123456789abcdef";

    private static int toByte(char c) {
        byte b = (byte) baseChar.indexOf(c);
        return b;
    }//from   w  w  w .j a v a  2 s  .  c om
}

Related

  1. toByte(boolean value)
  2. toByte(boolean... values)
  3. toByte(byte[] data)
  4. toByte(byte[] src)
  5. toByte(byte[] value)
  6. toByte(char c)
  7. toByte(char c)
  8. toByte(char c)
  9. toByte(char hex)