Convert String To Integer

 Convert string to a number in java

public class ConvertStringToInteger {

public static void main(String[] args) {
String number=”123″;
int num = Integer.parseInt(number);
System.out.println(“Number=”+num);

}
}

Leave a Reply

Your email address will not be published. Required fields are marked *

74 − = 65