Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java how to convert string to int

class Scratch{
    public static void main(String[] args){
        String str = "50";
        System.out.println( Integer.parseInt( str ));   // Integer.parseInt()
    }
}
Source by mkyong.com #
 
PREVIOUS NEXT
Tagged: #java #convert #string #int
ADD COMMENT
Topic
Name
5+1 =