Luhn algorithm: Difference between revisions

Content deleted Content added
No edit summary
Tags: Reverted Visual edit Mobile edit Mobile web edit
m Reverted edits by 49.185.192.51 (talk) (HG) (3.4.12)
Line 137:
</syntaxhighlight>
 
=== [[Java (programming language)|Java46Java]] ===
<syntaxhighlight lang="java" line="1">
public static boolean isValidLuhn(String number) {
Line 156:
return 10 - total % 10 == checksum;
}
</syntaxhighlight>45
 
== Uses ==