I need a more efficient way to validate my first two characters in a string are letters, and the rest are numbers
<p>So what i'm doing is creating a method that will validate that the sku meets my format requirement.  which is AA1234 (as long as the first two characters are letters, and the rest are numbers).</p>

<p>i'm stumped</p>

<pre><code>if(sku.substring(0,1).!startsWhith('0'))|(sku.substring(0,1).!startsWith('1'))
</code></pre>

<p>and so on and so on, like this could go on FOR EVER... If any of you have seen my previous posts i'm relatively new to java, and was just introduced to methods this past week.  i've been on this one program all night, and this is just one component of it i'm having a hard time with.  My knowledge just isn't there and i'm limited to only what i've been taught and read.</p>

<p>any help would be greatly appreciated.
thanks</p>