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 isEqualsIgnoreCase(String s1, String s2) {
        if (s1 == null || s2 == null) {
            return false;
        }
        return s1.trim().equalsIgnoreCase(s2.trim());
    }

    public static String trim(String str) {
        return str == null ? "" : str.trim();
    }
}