Class NumericTest

java.lang.Object
  |
  +--NumericTest

public class NumericTest
extends java.lang.Object

This class tests your implementation of the Numeric interface, using a main function. The version here is just to get you started. The graders will actually do a more rigorous test of your implementation, so you should extend this file yourself to test that everything is really working to your satisfaction.


Constructor Summary
NumericTest()
           
 
Method Summary
static void main(java.lang.String[] args)
          Test the RussianDoll implementation of Numeric.
static void printit(java.lang.String s, Numeric n)
          Print "s: n" using System.out.println.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumericTest

public NumericTest()
Method Detail

printit

public static void printit(java.lang.String s,
                           Numeric n)
Print "s: n" using System.out.println. The Numeric object n is printed as a long and also using toString. Typically used to print the answer of a test.


main

public static void main(java.lang.String[] args)
Test the RussianDoll implementation of Numeric.