Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

string to int java

    public int stringToInt(String str) {
      	// deleting everything that is not numeric
        return  Integer.parseInt(str.replaceAll("[^0-9.]",""));
    }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #string #int #java
ADD COMMENT
Topic
Name
2+7 =