What is the most efficient way to remove the first 3 characters of a string?
For example:
'apple' change to 'le' 'a cat' change to 'at' ' a b c'change to 'b c'
What is the most efficient way to remove the first 3 characters of a string?
For example:
'apple' change to 'le' 'a cat' change to 'at' ' a b c'change to 'b c'
Use the substring method of the String class :
String removeCurrency=amount.getText().toString().substring(3);