dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java
Expertise: Intermediate
Oct 24, 2019

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


Check if a Character Is Whitespace

In computer programming, whitespace is any character or series of characters that represent horizontal or vertical space in typography. Learn how to to check if a character is whitespace, as follows:

if(ch == " ") { ... }

Prefer this way:

if (Character.isWhitespace(ch)) { ... }
Octavia Anghel
 
Thanks for your registration, follow us on our social networks to keep up-to-date