Here you can find the source of booleanToYesNo(Boolean b)
Parameter | Description |
---|---|
b | a parameter |
public static String booleanToYesNo(Boolean b)
//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"; } }