Pure Programmer
Blue Matrix


Cluster Map

Project: ISBN-10 Check

The ISBN-10 number used to uniquely identify a book published before 2007 utilizes a check digit in its last place to catch data entry errors. Write a program that checks an ISBN-10 number and prints whether or not it is a valid number.

See [[International_Standard_Book_Number|International Standard Book Number]]

Output
$ javac -Xlint ISBN10Check.java $ java -ea ISBN10Check 0-7475-3269-9 is valid

Solution