tolowercase()
时间: 2023-10-16 18:09:59 浏览: 39
toLowerCase()是String类的一个方法,用于将字符串中的所有字母转换为小写。非字母字符不受影响。\[1\]例如,对于字符串"The Day You Went Away",使用toLowerCase()方法后,结果为"the day you went away"。\[2\]该方法返回一个新的字符串,其中所有大写字母都被转换为小写字母。\[3\]在Java中,可以通过调用字符串对象的toLowerCase()方法来实现。例如,对于字符串"abcdef 我 ghijklmn",使用toLowerCase()方法后,结果为"abcdef 我 ghijklmn"。\[4\]在运行代码时,可以通过调用toLowerCase()方法来将字符串转换为小写,并将结果打印出来。例如,对于字符串"The Day You Went Away",使用toLowerCase()方法后,结果为"the day you went away"。\[5\]
#### 引用[.reference_title]
- *1* *2* *4* *5* [1.5 字符串大小写转换(toLowerCase()和toUpperCase())](https://blog.csdn.net/weixin_44234912/article/details/108865181)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [toLowerCase](https://blog.csdn.net/RGHLY21/article/details/128505221)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)