uic.lang
Class UICMath
java.lang.Object
uic.lang.UICMath
public class UICMath
- extends Object
Math class for practicing Math using java.lang.Number objects.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UICMath
public UICMath()
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