Here you can find the source of bitToBoolean(byte b)
public static boolean bitToBoolean(byte b)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean bitToBoolean(byte b) { if (0 == b) return false; else//w w w.j ava 2s . c om return true; } }