Properly format inadvertently checked in test code.
git-svn-id: https://samskivert.googlecode.com/svn/trunk@1662 6335cc39-0255-0410-8fd6-9bcaacd3b74c
This commit is contained in:
@@ -79,14 +79,6 @@ public class KeyUtil
|
||||
return (rem == 0 ? prekey : key + (10 - rem));
|
||||
}
|
||||
|
||||
public static void main (String[] args) {
|
||||
|
||||
String base = "888888888888888888";
|
||||
for (int ii = 0; ii < 10; ii++) {
|
||||
System.out.println(makeLuhnVerifiable(base + ii));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the luhn remainder for the given key.
|
||||
*
|
||||
@@ -108,6 +100,14 @@ public class KeyUtil
|
||||
return sum % 10;
|
||||
}
|
||||
|
||||
public static void main (String[] args)
|
||||
{
|
||||
String base = "888888888888888888";
|
||||
for (int ii = 0; ii < 10; ii++) {
|
||||
System.out.println(makeLuhnVerifiable(base + ii));
|
||||
}
|
||||
}
|
||||
|
||||
/** Characters used in creating key strings. */
|
||||
protected static String KEY_CHARS = "0123456789";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user