Make Be BackEnd
equalsIgnoreCase 본문
java.lang.string 클래스
비교할때 대소문자 구분 없다
반환값 true/false
equalsIgnoreCase(String anotherString)
Compares this String to another String, ignoring case considerations.
|
대소문자 고려 사항을 무시하고 이 문자열을 다른 문자열과 비교합니다.
public boolean equalsIgnoreCase(String anotherString) {
return (this == anotherString) ? true
: (anotherString != null)
&& (anotherString.length() == length())
&& regionMatches(true, 0, anotherString, 0, length());
}
'JAVA' 카테고리의 다른 글
[Java] 대표적 final인 클래스 (0) | 2023.09.23 |
---|---|
JAVA 여러 버전 사용하기(cmd) (0) | 2023.09.18 |
기본타입 primitive type / 래퍼클래스 wrapper class (0) | 2023.09.12 |
[Java] 숫자 천 단위마다 콤마 표시 (12345678 -> 12,345,678) (0) | 2023.09.11 |
JAVA API (0) | 2023.09.04 |