intermediate/SumTest

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 SumTest
09 {
10   public static void main(String[] args)
11   {
12     Sum sum;
13     sum=new Sum();
14     Sum sum2;
15     sum2=new Sum();
16     sum.add(4);
17     sum2.add(7);
18     System.out.println("Sum is "+sum);
19     System.out.println("Sum2 is "+sum2);
20     sum.add(6);
21     System.out.println("Sum is "+sum);
22     System.out.println("Sum2 is "+sum2);
23   }
24 }


Download/View intermediate/SumTest.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