Jump to content

Verhoeff algorithm: Difference between revisions

Line 498:
System.out.println("The check digit for " + test.get(0) + " is " + object + "\n");
for ( String number : List.of( test.get(0) + objectString.toStringvalueOf(object), test.get(0) + "9" ) ) {
object = verhoeffChecksum(number, true, (boolean) test.get(2));
String result = (boolean) object ? "correct" : "incorrect";
907

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.