Im trying to make a user input validation system within one of my methods... its working fine to a cetain extent, but despite the code, its still allowing for integers as valid
I will take the code from Ubica. You can do it also like this. It is readable:
private boolean containsNumbers(String name) { char[] chars = name.toCharArray(); for (char c : chars) { if (Character.isDigit(c)) { return true; } } return false; }