Java tutorial
//package com.java2s; /** * Copyright (c)2012, Rational Developers; Ryan McGuinness * All rights reserved * Site: http://www.rationaldevelopers.com/fulcrum-xml * License: http://www.rationaldevelopers.com/fulcrum-xml/license.txt * Read Me: http://www.rationaldevelopers.com/fulcrum-xml/readme.txt *. */ public class Main { private static final Character[] WHITE_SPACE = { new Character('\u0020'), new Character('\u0009') }; public static boolean isWhiteSpace(char c) { boolean out = Boolean.TRUE; for (Character cr : WHITE_SPACE) { if (cr.equals(c)) { out = Boolean.FALSE; break; } } return out; } }