Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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 guru99.es #
 
PREVIOUS NEXT
Tagged: #string #int #java
ADD COMMENT
Topic
Name
3+5 =