Here you can find the source of convertBooleanToByte(boolean inputBool)
public static byte convertBooleanToByte(boolean inputBool)
//package com.java2s; //License from project: Open Source License public class Main { public static byte convertBooleanToByte(boolean inputBool) { int output = (inputBool) ? 1 : 0; return (byte) output; }//from w ww.ja va2 s. co m }