Android Binary to Byte Convert binaryStringToByte(String binary)

Here you can find the source of binaryStringToByte(String binary)

Description

binary String To Byte

Declaration

public static byte binaryStringToByte(String binary) 

Method Source Code

//package com.java2s;

public class Main {
    public static byte binaryStringToByte(String binary) {
        return Integer.valueOf(binary, 2).byteValue();
    }/* w w  w.  j a  v a 2 s  .c o m*/
}