HOME      BLOG       FORUMS      CONTACT       ABOUT

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);
	}
}

Share

Tags: , , , , ,


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.

AddThis Social Bookmark Button

Leave a Reply