Java Reference
In-Depth Information
is a digit that denotes part of the integer) and after the initial non-zero digit in a non-zero
decimal literal.
A decimal numeral is either the single ASCII digit 0 , representing the integer zero, or con-
sists of an ASCII digit from 1 to 9 optionally followed by one or more ASCII digits from 0
to 9 interspersed with underscores, representing a positive integer.
DecimalNumeral:
0
NonZeroDigit Digits opt
NonZeroDigit Underscores Digits
Digits:
Digit
Digit DigitsAndUnderscores opt Digit
Digit:
0
NonZeroDigit
NonZeroDigit: one of
1 2 3 4 5 6 7 8 9
DigitsAndUnderscores:
DigitOrUnderscore
DigitsAndUnderscores DigitOrUnderscore
DigitOrUnderscore:
Digit
_
Underscores:
_
Underscores _
A hexadecimal numeral consists of the leading ASCII characters 0x or 0X followed by one
or more ASCII hexadecimal digits interspersed with underscores, and can represent a pos-
itive, zero, or negative integer.
Hexadecimal digits with values 10 through 15 are represented by the ASCII letters a
through f or A through F , respectively; each letter used as a hexadecimal digit may be up-
percase or lowercase.
HexNumeral:
0 x HexDigits
0 X HexDigits
Search WWH ::




Custom Search