Here you can find the source of toBit(boolean f)
public static char toBit(boolean f)
//package com.java2s; public class Main { public static char toBit(boolean f) { return f ? '1' : '0'; }//from w w w.j ava 2 s. c om }