public boolean matchesWord(){
  return !isEmpty() && Character.isLetterOrDigit(queue.charAt(pos));
}

public boolean matchesWord ( ) { return ! isEmpty ( ) && Character . isLetterOrDigit ( queue . charAt ( pos ) ) ; }
test if the queue matches a word character ( letter or digit ) .
