Java Boolean Convert to booleanToYesNo(Boolean b)

Here you can find the source of booleanToYesNo(Boolean b)

Description

Returns "Y" for true and "N" for false

License

Open Source License

Parameter

Parameter Description
b a parameter

Declaration

public static String booleanToYesNo(Boolean b) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    /**/* w ww  .  j  ava2s  .  c o  m*/
     * Returns "Y" for true and "N" for false
     * 
     * @param b
     * @return
     */
    public static String booleanToYesNo(Boolean b) {
        return b.booleanValue() ? "Y" : "N";
    }
}

Related

  1. booleanArrayToString(boolean[] ba)
  2. booleanToBasicType(boolean b, Class clazz)
  3. booleanToDouble(boolean b)
  4. booleanToStr(boolean bool)
  5. booleanToTinyInt(boolean b)
  6. boolToNum(Boolean bool)
  7. BoolToNum(boolean bool)
  8. boolToNumber(boolean aBoolean)
  9. boolToYesNo(boolean b)