Android String Equal equal(String s1, String s2)

Here you can find the source of equal(String s1, String s2)

Description

equal

Declaration

public static boolean equal(String s1, String s2) 

Method Source Code

//package com.java2s;

public class Main {

    public static boolean equal(String s1, String s2) {
        if (s1 == s2) {
            return true;
        }//from  ww w .  ja v a 2  s  . com
        if (s1 == null) {
            return false;
        }
        return s1.equals(s2);
    }
}

Related

  1. equals(String str1, String str2)
  2. equalsIgnoreCase(String str1, String str2)
  3. isEquals(String a, String b)
  4. equals(final CharSequence cs1, final CharSequence cs2)
  5. equals(String str1, String str2)
  6. isEquals(String str1, String str2)
  7. equals(String str1, String str2)
  8. equalsIgnoreCase(String str1, String str2)
  9. equalsIgnoreCase(String string1, String string2)