title: Validate password if it is numeric and has more than 6 digits in Java
body: <p>I am new to Java and I am working on a To do list Android app. Therefore, I need a password validation which validates the password, if it is numeric and if it has more than 6 digits. What would be the best way to do that? </p>