Can anyone suggest me how to check if a String contains full width characters in Java? Characters having full width are special characters.
String
Java
use regular expression here. \W is used to check for non-word characters.
str will contain full width character if following statement return true:
boolean flag = str.matches("\\W");