Last active
November 22, 2016 10:30
-
-
Save santocodez/9dfc51d7417dd26d5b85ee7997c41e49 to your computer and use it in GitHub Desktop.
Get Int value From String
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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