Here you can find the source of boolToStr(Boolean value)
public static String boolToStr(Boolean value)
//package com.java2s; //License from project: Open Source License public class Main { public final static String YES = "Y"; public final static String NO = "N"; public static String boolToStr(Boolean value) { //How this reads is is the boolean true and is it equal to value? if (Boolean.TRUE.equals(value)) { return YES; }//from w w w. j ava 2 s.c o m return NO; } }