Android String Equal StringEquals(String s1, String s2)

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

Description

String Equals

License

Open Source License

Declaration

private static boolean StringEquals(String s1, String s2) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    private static boolean StringEquals(String s1, String s2) {
        if (s1 == s2)
            return true;
        if (s1 == null || s2 == null)
            return false;
        return s1.equals(s2);
    }//from   w  w  w  . j  ava  2s  .  co m
}

Related

  1. equalsIgnoreCase(String str1, String str2)
  2. equalsIgnoreCase(String string1, String string2)
  3. equals(final String target1, final String target2)
  4. equalsIgnoreCase(final String target1, final String target2)
  5. findOf(String str, String chars, int startIdx, int endIdx, int offset, boolean isEqual)