Hi,
I'm currently completing a task. The question goes:
"Write a method called checkISBN( ) to verify the ISBN of each book. The ISBN is valid if
- the number of characters is 10.
- the first character is a letter in uppercase
Return a String "Valid" if the ISBN is correct otherwise return "Invalid".
So far, I have determined the following:
- the length( ) method is used.
-the charAt(0) method is used.
- I have access to a private String variable called "isbn".
- I will need to use an if...else statement.
Its just that I'm struggling to put all of it together.
Please help.
Cheers.