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 isEqualIgnoreCase(final String s1, final String s2) {
        return s1 != null ? s1.equalsIgnoreCase(s2) : s2 == null;
    }

    public static boolean isEqualIgnoreCase(final String s1, final String s2, final String desiredS2ForNull) {
        return s1 != null ? s1.equalsIgnoreCase(s2) : s2.equals(desiredS2ForNull);
    }
}