jdollars.core
Class Util

java.lang.Object
  |
  +--jdollars.core.Util

public abstract class Util
extends java.lang.Object

utilities


Method Summary
static void checkCreditCardNumber(java.lang.String strCCN)
          use this method to see if a credit card number passes the Mod-10 algorithm (aka Luhn check digit algorithm)
static boolean isNumeric(java.lang.String strTarget)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

checkCreditCardNumber

public static void checkCreditCardNumber(java.lang.String strCCN)
                                  throws InvalidCreditCardNumberException
use this method to see if a credit card number passes the Mod-10 algorithm (aka Luhn check digit algorithm)

isNumeric

public static boolean isNumeric(java.lang.String strTarget)
Returns:
returns true if and only if all characters in the string are numeric digits (0, 1, ..., 9)