Skip to content

Instantly share code, notes, and snippets.

@santocodez
Last active November 22, 2016 10:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save santocodez/9dfc51d7417dd26d5b85ee7997c41e49 to your computer and use it in GitHub Desktop.
Save santocodez/9dfc51d7417dd26d5b85ee7997c41e49 to your computer and use it in GitHub Desktop.
Get Int value From String
public static int getIntvalue(String text){
int value = Integer.parseInt(text.replaceAll("\\D+",""));
return value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment