Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
Members have full access to the forums. Advertisements are removed for registered users.
<nitpick>Classes should start with an uppercase letter: TestMath, or MathTest or whatever...</nitpick>
@OP: Ask if you don't see why Math is not a good choice of class name.