jam/Sum

From ggc

Jump to: navigation, search

01 package jam;
02 
03 
04 import wiki.Wiki;
05 /**
06  * All about my class here.
07  @author Jam Jenkins
08  */
09 public class Sum
10 {
11   private int runningTotal;
12 
13   public Sum()
14   {
15     runningTotal=0;
16   }
17 
18   public int getCurrentTotal()
19   {
20     return runningTotal;
21   }
22 
23   public void add(int toAdd)
24   {
25     runningTotal=runningTotal+toAdd;
26   }
27 }


Download/View jam/Sum.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