SyntaxFix
Write A Post
Hire A Developer
Questions
Here's how to check if the input contains a digit:
if (input.matches(".*\\d.*")) { // there's a digit somewhere in the input string }