Java Boolean Convert to BoolToNum(boolean bool)

Here you can find the source of BoolToNum(boolean bool)

Description

Bool To Num

License

Open Source License

Declaration

public static String BoolToNum(boolean bool) 

Method Source Code

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

Related

  1. booleanToBasicType(boolean b, Class clazz)
  2. booleanToDouble(boolean b)
  3. booleanToStr(boolean bool)
  4. booleanToTinyInt(boolean b)
  5. booleanToYesNo(Boolean b)
  6. boolToNum(Boolean bool)
  7. boolToNumber(boolean aBoolean)
  8. boolToYesNo(boolean b)