Java Reference
In-Depth Information
dwim();
}
This technique requires that the code to be removed is complete enough
to compile without error. In this case we assume that the dwim method
is defined somewhere.
7.1.3. Tokens
The tokens of a language are its basic words. A parser breaks source
code into tokens and then tries to figure out which statements, identifi-
ers, and so forth make up the code. Whitespace (spaces, tabs, newlines,
and form feeds) is not significant except to separate tokens or as the
contents of character or string literals. You can take any valid code
and replace any amount of intertoken whitespace (whitespace outside
strings and characters) with a different amount of whitespace (but not
none) without changing the meaning of the program.
Whitespace must be used to separate tokens that would otherwise con-
stitute a single token. For example, in the statement
return 0;
you cannot drop the space between return and 0 because that would
create
return0;
consisting of the single identifier return0 . Use extra whitespace appro-
priately to make your code human-readable, even though the parser ig-
nores it. Note that the parser treats comments as whitespace.
 
Search WWH ::




Custom Search