Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

in java how to convert string to integer

class scratch{
    public static void main(String[] args) {
        String str = "54";
        int num = Integer.parseInt("54");
        double doub = Double.parseDouble("54");
    }
}
Source by mkyong.com #
 
PREVIOUS NEXT
Tagged: #java #convert #string #integer
ADD COMMENT
Topic
Name
2+3 =