protected boolean isControlChar(char ch){
  return Character.isISOControl(ch) && !Character.isWhitespace(ch);
}

protected boolean isControlChar ( char ch ) { return Character . isISOControl ( ch ) && ! Character . isWhitespace ( ch ) ; }
determines if the character is a control character .
