substring截掉第一位
时间: 2023-10-24 22:26:51 浏览: 148
substring截掉第一位意味着从原始字符串中去掉第一个字符,返回剩余的字符。在Java中,可以使用substring方法来实现这一操作。例如,如果有一个字符串str = "abcd",那么str.substring(1)将返回"bcd",即去掉了第一个字符"a"后的剩余部分。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [substring()方法详解](https://blog.csdn.net/Mr_Gaojinchao/article/details/112688349)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [关于substring的截取位置的讲解](https://blog.csdn.net/x18094/article/details/123897655)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文