test if char is blank java code example Example: check if char is a space java if (myChar == ' '){ //do something if the char is a space }