Here you can find the source of boolToInt(boolean b)
public static int boolToInt(boolean b)
//package com.java2s; public class Main { public static int boolToInt(boolean b) { return b ? 1 : 0; }/* ww w.j a v a 2 s . c om*/ }