The ZonedDateTime Class The ZonedDateTime class represents a date-time with time zone information, and an instance of the class is…

Conditional Formatting Consider contiguous half-open intervals on the number line, as shown below. The (lower and upper) limits of these…

18.1 Using Locales A locale represents a specific geographical, political, or cultural region. Its two most important attributes are language…

Creating Resource Bundles A resource bundle can be a property resource file (as shown in Example 18.2) or a resource…

Customizing Decimal Number Formatting The java.text.DecimalFormat class formats and parses numbers (including BigDecimal) according to a string pattern, specified using…

Compact Number Parsing The parse() method of the compact number formatter can be used to parse a string that contains…

Compact Number Formatting A compact number formatter creates a textual representation that represents the compact form of a number. This…

Style-Based Formatters for Date and Time Values For more flexible formatters than the predefined ISO-based formatters, the Date-TimeFormatter class provides…

Searching in Resource Bundles Example 18.4 is instructive in understanding which resource bundles for a given locale will be searched…

Accounting Currency Formatting By default, the minus sign (-) is used as a prefix when formatting negative numbers using a…