How can I check to see if a String contains a whitespace character, an empty space or \" \". If possible, please provide a Java example.
For example: String
String
You can basically do this
if(s.charAt(i)==32){ return true; }
You must write boolean method.Whitespace char is 32.