Pages

Convert String to Int


Convert string to int variable that may do arithmetic operaton.
Here is the code to convert
{
     String month="25";
     int count=0;
     count=count+Integer.parseInt(month);
     System.out.println("Count is " + count);
}

Output :
Count is 25