Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 29, 2023 08:28 am GMT

How to convert String to Integer in java

for explanation watch the video


import java.util.*;import java.lang.*;class Demo{    public static void main(String[] args){        String s = "9999";        int num1 = Integer.parseInt(s);        System.out.println(num1);        int num2 = Integer.valueOf(s);        System.out.println(num2);    }   }

Original Link: https://dev.to/realnamehidden1_61/how-to-convert-string-to-integer-in-java-32gp

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To