SyntaxFix
Write A Post
Hire A Developer
Questions
I don't know about best, but this seems pretty simple to me:
Character.isDigit(str.charAt(index)) Character.isLetter(str.charAt(index))