Here you can find the source of toByte(byte[] value)
Parameter | Description |
---|---|
value | a parameter |
public static byte toByte(byte[] value)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from w w w . j a v a 2s .c om*/ * byte[] -> byte * * @param value * @return */ public static byte toByte(byte[] value) { return (value == null || value.length == 0) ? 0x0 : value[0]; } }