To check if a String contains a special character in Java, you can use a regular expression to match any character that is not a letter or a digit.