Java Byte Create toByte(byte[] data)

Here you can find the source of toByte(byte[] data)

Description

to Byte

License

Open Source License

Declaration

public static byte toByte(byte[] data) 

Method Source Code

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

public class Main {
    public static byte toByte(byte[] data) {
        return (data == null || data.length == 0) ? 0x0 : data[0];
    }/*from  w  w w .ja  v a  2s . c  om*/
}

Related

  1. toByte(boolean value)
  2. toByte(boolean... values)
  3. toByte(byte[] src)
  4. toByte(byte[] value)
  5. toByte(char c)
  6. toByte(char c)