当前位置:网站首页>The difference between equalsignorecase() and equals()
The difference between equalsignorecase() and equals()
2022-04-22 06:38:00 【Yu Ge 852】
Both belong to String Methods in class :
boolean equals(Object anObject)
Compare this string with the specified object .
boolean equalsIgnoreCase(String anotherString)
Put this String And another String Compare , Regardless of case .
String a="YUGE";
a.equals("abc") by false,
a.equalsIgnoreCase("abc") by true;
equalsIgnoreCase And equals The difference is that the former is case insensitive , The latter distinction
版权声明
本文为[Yu Ge 852]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220554157364.html
边栏推荐
猜你喜欢

数美科技与澎湃新闻联合发布《网络信息内容安全洞察报告》

Escort · the future 𞓜 digital risk control summit of digital America 2022 officially set off

Openinfra live | Kyushu yunhuang Shuquan was elected track chair and brought wonderful theme sharing

The annual list of its intelligent service excellent enterprises was released, and Kyushu cloud won the "2021 top 10 of Xinchuang operation and maintenance"

Analysis and practice of open source at home and abroad

MySQL basics 2

Pgbouncer最佳实践:系列三

点击触发其他dom元素:< $refs,$el >

一套sql语句同时支持Oracle跟Mysql?

Mapping of oid and relfilenode in PostgreSQL
随机推荐
SSM源码专题
Hangzhou rail transit supervision platform edge cloud won the award and set a new benchmark in the industry
MySQL备忘录(供自己查询所用)
护航·未来| 数美2022数字风控峰会正式启程
PostgreSQL如何对URL进行解析
servlet3.0+事件驱动实现高性能长轮询
MySQL中的锁与事务
报错:In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated column
数美2022数字风控峰会开启,五大看点提前曝光
Join hands to strengthen the ability of "content audit" and achieve strategic cooperation between rongyun and digital beauty technology!
PostgreSQL uses clickhousedb_ FDW access Clickhouse
浅谈分布式锁
区间列表的交集
Using ltree to process hierarchical data in PostgreSQL
How can enterprise risk control build four systems to achieve overall prevention and control?
uglifyjs压缩JS
Jasmine X4 tutorial instructions, graphic explanation tutorial
Mapping of oid and relfilenode in PostgreSQL
Generation principle and recurrence of epic vulnerability log4j2 that is popular in it circle
Shumei technology has obtained the international certification of ISO / IEC 27701 privacy information management system