Here you can find the source of BoolToNum(boolean bool)
public static String BoolToNum(boolean bool)
//package com.java2s; //License from project: Open Source License public class Main { public static String BoolToNum(boolean bool) { return bool ? "1" : "0"; }//ww w. ja v a 2s . c o m }