Accumulate

Used to accumulate values by category.

Used to accumulate values by category. It might be useful for example in a billing program to accumulate hours by various categories. It could be used to count how many times various words occurred in a document. All you need is: buckets.accumulate( "somecategory", someamount ); And Accumulate looks after creating the buckets to accumulate new categories for you. e.g. Accumulate buckets = new Accumulate( 20 ); buckets.accumulate( "ugli fruit", 3 ); buckets.accumulate( "peaches", 10 ); buckets.accumulate( "strawberries", 15 ); buckets.accumulate( "peaches", 14 ); String[] categories = buckets.categories(); // prints: // peaches:24 // strawberries:15 // ugli fruit:3 for (String category: categories ) { System.out.println( category: + ":" + buckets.total( category )); } You can test the app with: java.exe -jar accumulate.jar

Changes: add ANT build file

Minimum requirements: Java 1.7+

Operating system: Java,Linux,Mac OS X,Unix,Win2000,Win7 x32,Win7 x64,WinServer,WinVista,WinVista x64,WinXP

Program URL: http://mindprod.com/products2.html#ACCUMULATE

Accumulate screenshot

...

Special permissions

You may include Accumulate any CD compilation. You may not sell Accumulate. It is free.

EULA

This program is for non-military use only. For details on what that licencing restriction means and why I restricted this software that way, see http://mindprod.com/contact/nonmil.html If you incorporate any of my code in your programs, they too must be marked for non-military use only. However it is not your responsibility to enforce that restriction.

Read more