Here you can find the source of boolToInt(boolean b)
public static int boolToInt(boolean b)
//package com.java2s; //License from project: Apache License public class Main { public static int boolToInt(boolean b) { return b ? 1 : 0; }//from ww w . ja v a 2s.co m }