Check whether the given character is a white space character or not.
The isWhiteSpace method of Character class is used for finding out whether the given character is a white space character or not.
public class CharWrapper {
public static void main(String[] args) {
char c = '\n';
boolean value = Character.isWhitespace(c);
System.out.println(value);
}
}
Tags: char, Character, Character examples, Character wrapper class, java.lang, java.lang.Character
You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.
Leave a Reply