SyntaxFix
Write A Post
Hire A Developer
Questions
Tags
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'
This question is related to java string
java
string
Use the substring method of the String class :
String removeCurrency=amount.getText().toString().substring(3);
Source: Stackoverflow.com