Java tutorial
public class Main { public static void main(String[] argv) { System.out.println("is white space:" + Character.isWhitespace('a')); System.out.println("is white space:" + Character.isWhitespace('\n')); System.out.println("is white space:" + Character.isWhitespace('\t')); } }