Java Boolean to Int boolToInt(boolean b)

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

Description

bool To Int

License

Apache License

Declaration

public static int boolToInt(boolean b) 

Method Source Code

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

Related

  1. booleanToInt(boolean[] values)
  2. booleanToint(final boolean value)
  3. booleanToInteger(boolean b)
  4. BooleanToInteger(boolean thisbool)
  5. boolToInt(boolean b)
  6. boolToInt(boolean bool)
  7. BoolToInt(boolean Expression)
  8. boolToInt(Boolean[] bools_in)
  9. convertBooleanToInt(boolean aValue)