answersLogoWhite

0

By default, no. The StreamTokenizer class ignores spaces as white space.

If you need to make it a token, which you didn't specify, you can modify the default behavior by calling the function ordinaryChar (int ch), where ch is the character you would want to be treated as a token.

From the Java SE 6 API documentation:

ordinaryCharpublic void ordinaryChar(int ch) Specifies that the character argument is "ordinary" in this tokenizer. It removes any special significance the character has as a comment character, word component, string delimiter, white space, or number character. When such a character is encountered by the parser, the parser treats it as a single-character token and sets ttype field to the character value.

Making a line terminator character "ordinary" may interfere with the ability of a StreamTokenizer to count lines. The lineno method may no longer reflect the presence of such terminator characters in its line count.Parameters:ch - the character.

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

In java What is a smallest individual unit in a program?

token


What is parseInt in BufferedReader in java?

parseInt() interprets the next available token as an int.


What is the ' ' called in java?

' ' would be the character for a space in Java.


What is token space in Sign Language?

Token and surrogate space are very similar and they both have to do with non-present entities being placed in the signer's vertical or horizontal template. However, Token space is for example, BIKE (cL 3) THERE (referent to space) and Surrogate space is for example, referent to a non present entity as well, but referring to the already placed Token. They are both intertwined together.


How do you increase java heap size on mobile phones?

How do increase java heap space on mobile


What is simple token space in American sign language?

Simple token space in American Sign Language refers to the signing space that is directly in front of the signer, usually within arm's reach. It is commonly used for simple signs or gestures that do not require much movement or space.


How much space does java take up?

12


What is token List out various type of token support in java?

Tokens are the smallest unit of Program. There is Five Types of Tokens 1) Reserve Word or Keywords 2) Identifier 3) Literals 4) Operators 5) Separators


Where is the space kook token in Scooby Doo Night of 100 frights?

hiding


Where is the secret token in the Thor level?

After you get out of space you go in the corner were the streets are and it should be there


Write a program in Lex to eliminate white space and collect numbers as a token?

write a lex program to delete space from the program


What is the tag in Html for providing space Similar to t in java?

The answer is :