![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
An identifier (or name, to use the user interface label) is an unlimited-length sequence of letters and digits, the first of which must be a letter. Letters include uppercase and lowercase ASCII Latin letters A-Z, a-z, and the underscore (_).
•
•
• int — One or more digits without a decimal. May be positive or negative. Examples: 4 45 -321 787878
• long — An integer literal suffixed with the letter L. The suffixed L can be either upper or lower case, but keep in mind that the lower case L (l) can be difficult to distinguish from the number one (1).
Examples: 0l 0777L 0x100000000L 2147483648L 0xC0B0L
• double — A number that can represent fractional values. D suffix is optional unless there is no decimal point or exponent.
Examples: 1D 1e1 2. .3 0.0D 3.14 1e-9d 1e137
• String — Zero or more characters enclosed in double quotes (""). The string must be on one line. Use \n for newlines. Use the plus sign (+) to concatenate string segments.
Examples: empty string: "" (quotes with no space). Space character: " " (quotes with one or more spaces). Strings with values: "P0QSTN3" "The quick brown fox had quite a feast!" Strings spanning multiple lines:
"The quick brown fox " +
"had quite a feast!"
•
• Null — This value: null
Table 28 Escape Sequences
-= += *= /= %= += works on strings as well as numbers. For example, you have a variable String s = "abc"; and then you use
s+= "def"; and so the value of s becomes "abcdef"
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |