什么是将字符串的前三个字符删除的最高效方法?
例如:
'apple' 改为 'le' 'a cat' 改为 'at' ' a b c' 改为 'b c'
只需使用substring方法:"apple".substring(3); 将返回le
"apple".substring(3);
le
使用 String 类的 substring 方法:
String removeCurrency=amount.getText().toString().substring(3);