The code for this study is from Sum it up with JCalculator an article by Claude Duguay in JavaPro, August 2001, Vol.5 No. 8,and may be downloaded from Devx