So I just finished writing a program from my Java class,except I can't figure out how to validate the bookID.
"In the Book class, you need to provide a validate method that validate weather the book id is correct. The book id should be a string, which contains no more than 6 characters, and one digit."
Could someone please help me out with this one? Prehaps an example?