private boolean isDomainChar(char c){
  return c == '-' || Character.isLetter(c) || Character.isDigit(c);
}

private boolean isDomainChar ( char c ) { return c == '-' || Character . isLetter ( c ) || Character . isDigit ( c ) ; }
determines if this is an allowable domain character .
