Java Byte Create toByte(char c)

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

Description

to Byte

License

Open Source License

Declaration

public static byte toByte(char c) 

Method Source Code

//package com.java2s;

public class Main {
    public static byte toByte(char c) {
        byte b = (byte) "0123456789ABCDEF".indexOf(c);
        return b;
    }//from   w  w  w . j  a  v  a  2s.  c o  m
}

Related

  1. toByte(byte[] data)
  2. toByte(byte[] src)
  3. toByte(byte[] value)
  4. toByte(char c)
  5. toByte(char c)
  6. toByte(char c)
  7. toByte(char hex)
  8. toByte(double x, double gamma)
  9. toByte(final byte[] buffer, final int offset)