check if a char is a space java

Java
if (c == ' ')
Source

Also in Java: