Here you can find the source of bitString(boolean value)
Parameter | Description |
---|---|
value | A boolean to examine. |
public static String bitString(boolean value)
//package com.java2s; //License from project: Apache License public class Main { /**/* w w w. j a v a 2 s.co m*/ * Return a string representation of "0" or "1" as the value of a boolean. * @param value A boolean to examine. * @return The string "1" is the boolean is true and "0" if the boolean is false. */ public static String bitString(boolean value) { return value ? "1" : "0"; } }