I need a method that can tell me if a String has non alphanumeric characters.
For example if the String is \"abcdef?\" or \"abcdefà\", the method must return true.>
You have to go through each character in the String and check Character.isDigit(char); or Character.isletter(char);
Character.isDigit(char);
Character.isletter(char);
Alternatively, you can use regex.