从字符串中删除前3个字符 [英] Removing the first 3 characters from a string
本文介绍了从字符串中删除前3个字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
删除字符串的前3个字符最有效的方法是什么?
What is the most efficient way to remove the first 3 characters of a string?
例如:
'apple' change to 'le'
'a cat' change to 'at'
' a b c'change to 'b c'
推荐答案
只需使用子字符串:"apple" .substring(3);
将返回 le
Just use substring: "apple".substring(3);
will return le
这篇关于从字符串中删除前3个字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文