Android String Equal equals(String str1, String str2)

Here you can find the source of equals(String str1, String str2)

Description

equals

Declaration

public static boolean equals(String str1, String str2) 

Method Source Code

//package com.java2s;

public class Main {

    public static boolean equals(String str1, String str2) {
        return str1 == str2 || str1 != null && str1.equals(str2);
    }/* w  ww .  j a  va 2 s  . c o m*/
}

Related

  1. equalsIgnoreCase(String str1, String str2)
  2. isEquals(String a, String b)
  3. equals(final CharSequence cs1, final CharSequence cs2)
  4. equals(String str1, String str2)