How can I check a string for multiple specific characters in java
<p>I need to check a string to see if it contains any one of these characters (#, $, %, &amp;) in java. I need to check for all 4 at the same time, with out a loop if possible and without regex. I am using this to verify validity of an email address so I cant just check for special characters as the email contains the @. Is there a way to use the .contains method with a switch statement?</p>