Java tutorial
//package com.java2s; public class Main { public static boolean getCheckBoxType(String type) { if (type.equalsIgnoreCase("Y")) { return true; } else if (type.equalsIgnoreCase("N")) { return false; } else { return false; } } public static String getCheckBoxType(boolean type) { if (type) { return "Y"; } else { return "N"; } } }