Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

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