org.foray.common
Class NumberUtil
java.lang.Object
org.foray.common.NumberUtil
public final class NumberUtil
- extends Object
Utility class for numeric computations not handled in standard classes.
Method Summary |
static boolean |
isOdd(long input)
Indicates whether the input value is odd. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isOdd
public static boolean isOdd(long input)
- Indicates whether the input value is odd.
- Parameters:
input
- the value to be tested.
- Returns:
- True if
input
is odd, false if it is even.
Copyright © 2017. All rights reserved.