intermediate/StringToInt

From ggc

Jump to: navigation, search

01 package intermediate;
02 
03 
04 /**
05  * All about my application.
06  @author My Name Here
07  */
08 public class StringToInt
09 {
10   public static void main(String[] args)
11   {
12     String number="567";
13     String number2="123";
14     int sum=
15         Integer.parseInt(number)+
16         Integer.parseInt(number2);
17     String x=""+sum;
18     System.out.println(""+sum);
19   }
20 }


Download/View intermediate/StringToInt.java





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter