java- String validation
<p>I need to test whether the string given as input is a not a whole number or contains at least five English alphabets.I know how to implement it using the loops.But I think it affects the efficiency of my code.Can you please tell me any other efficient way to do this?</p>

<p>For eg:</p>

<pre><code>  11111111 //ERROR(Whole number)
  1111aa11  //ERROR(less than 5 English alphabets)
  aAAAAA11  //TRUE
</code></pre>
