public class Luhn extends Object
| 构造器和说明 |
|---|
Luhn() |
public static boolean check(String strWithCheckDigit)
strWithCheckDigit - 含校验数字的字符串IllegalArgumentException - 如果字符串为空或不是8~19位的数字public static int getCheckDigit(String str, boolean withCheckDigit)
str - 被检查的数字withCheckDigit - 是否含有校验位Copyright © 2024. All rights reserved.