Java Byte Create toByte(String hex)

Here you can find the source of toByte(String hex)

Description

to Byte

License

Open Source License

Declaration

public static byte toByte(String hex) 

Method Source Code

//package com.java2s;

public class Main {

    public static byte toByte(String hex) {
        return (byte) Integer.parseInt(hex, 16);
    }/*from  www . j  a  v  a 2  s . c  o  m*/
}

Related

  1. toByte(Object value)
  2. toByte(Object value)
  3. toByte(Object value)
  4. toByte(short unsignedByte)
  5. toByte(short value, boolean first)
  6. toByte(String hex)
  7. toByte(String hex)
  8. toByte(String hexStr)
  9. toByte(String hexString)