Well, as I see it, there are a number of steps here:
1) Getting ahold of the String in question;
2) Checking that it's 9 characters long;
3) Getting ahold of the String's 1st character;
4) Checking that it's uppercase; and
5) Reporting the result of the tests.
Let us know which of these parts you're having trouble with: show us your code so far. Let us know what documentation you've looked at -- in particular, do you know about the Javadoc API documentation? And finally, let us know what sort of hints you might need. [ February 13, 2006: Message edited by: Ernest Friedman-Hill ]
Well, i've been at this for days and i've tried everything (except the right thing of course) and still cannot come up with a code that checks it is 9 characters long and the first character is a capital letter.
The code below does run but i know its not right.
Other things i've tried: if (data >= �A� && data <= �Z�), i've tried charAt() but cannot get it all to fit together.
Any help at this point would be gratefully received. Thanks