public boolean hasMoreTokens(){
  if (!retDelims) {
    while (pos < len && delim.indexOf(str.charAt(pos)) >= 0)     pos++;
  }
  return pos < len;
}

public boolean hasMoreTokens ( ) { if ( ! retDelims ) { while ( pos < len && delim . indexOf ( str . charAt ( pos ) ) >= 0 ) pos ++ ; } return pos < len ; }
tells if there are more tokens .
