Luhn algorithm: Difference between revisions

Content deleted Content added
Line 140:
<syntaxhighlight lang="java" line="1">
public static boolean isValidLuhn(String number) {
int n = number.length();
int total = 0;
boolean even = true;