Android Boolean to Int Convert boolToInt(boolean b)

Here you can find the source of boolToInt(boolean b)

Description

bool To Int

Declaration

public static int boolToInt(boolean b) 

Method Source Code

//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*/
}

Related

  1. boolToLong(boolean b)