java比较两个字符串忽略大小写
1、在你的程序中添加hutool的jar包

2、定义一个String类型的字符串使用小写

3、再定义一个String类型的字符串使用大写

4、boolean equals = StrUtil.equalsIgnoreCase(str, str1);//比较两个字符串忽略大小写

5、运行代码得到结果为true

1、在你的程序中添加hutool的jar包
2、定义一个String类型的字符串使用小写
3、再定义一个String类型的字符串使用大写
4、boolean equals = StrUtil.equalsIgnoreCase(str, str1);//比较两个字符串忽略大小写
5、运行代码得到结果为true