String toLowerCase()
功能:将此 String 中的所有字符都转换为小写。
/**
* @Time 2021/1/18 13:19
* String类的toLowerCase()方法
*
* 将此 String 中的所有字符都转换为小写。
*/
String str1="QWERTYUiopasdf";
str1.toLowerCase(); //qwertyuiopasdf
boolean endsWith(String suffix)
判断此字符串是否是以“suffix”结尾
/**
* String类的endsWith()
*/
String str="qwertyu";
str.endsWith("yu"); //true