Even had I not, spoonfeeding is still not helping. Especially when you don't even give out a great solution.
Type: Posts; User: KevinWorkman
Even had I not, spoonfeeding is still not helping. Especially when you don't even give out a great solution.
Take a look at the String and Character APIs for useful functions. I'd suggest you break this up into more than one method: write one method that checks length, another that checks content, etc.
...
Sigh. Spoonfeeding is bad enough. Spoonfeeding an answer that isn't as good as one already given is just pointless.
Why?
You don't have any loops in there at all.
Hint: You want to do something while a certain criteria is not met, right?