uic.lang
Class UICMath

java.lang.Object
  extended by uic.lang.UICMath

public class UICMath
extends Object

Math class for practicing Math using java.lang.Number objects.


Constructor Summary
UICMath()
           
 
Method Summary
static Number add(Number n1, Number n2)
          Adds two numbers.
static Number subtract(Number n1, Number n2)
          Subtracts to numbers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UICMath

public UICMath()
Method Detail

add

public static Number add(Number n1,
                         Number n2)
Adds two numbers.

Parameters:
n1 - a number object.
n2 - a number object
Returns:
n1 + n2

subtract

public static Number subtract(Number n1,
                              Number n2)
Subtracts to numbers.

Parameters:
n1 - a number object.
n2 - a number object
Returns:
n1 - n2


Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence