Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Luhn check range

843811Oct 27 2006 — edited Oct 31 2006
Hi,

I like to write a function that will take two credit cards number (valid luhn numbers) and counts how many luhn numbers exist in the range. Any pointers as to how to approach this?

I have the fuction that check if the card is a valid Luhn and also know how to commute the check digit. But not sure how to find the existing luhn between two vavid card numbers.

something like this:

public static int countRange(String startRange, String endRange)
given startRange and endRange are valid luhn numbers.

Regards,
Jenny
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 28 2006
Added on Oct 27 2006
2 comments
213 views