Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

convert string to int in 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: #convert #string #int #java
ADD COMMENT
Topic
Name
4+6 =