How do I check if a list of characters are in a String, for example \"ABCDEFGH\" how do I check if any one of those is in a string.
This is how it can be achieved using Pattern and Matcher,
Pattern p = Pattern.compile("[^A-Za-z0-9 ]");
Matcher m = p.matcher(trString);
boolean hasSpecialChars = m.find();
This seems like a Homework question... -_-
You can use the String.contains() function.
For example:
"string".contains("a");
String str = "wasd";
str.contains("a");
but you will need to call it once per every character you want to check for.