MessageFormat
MessageFormat is a class in the Java standard library (java.text) that formats localized messages by combining a pattern with arguments. It enables locale-aware substitution and formatting of numbers, dates, times, and selections (pluralization) within a single string.
Pattern syntax: A pattern consists of literals and argument expressions enclosed in curly braces. An expression
Usage: Create a MessageFormat with a pattern and a Locale, then call format(Object[]). Patterns can be stored
Escaping: Literal text is quoted with single quotes. To include a literal single quote, use two consecutive
See also: ResourceBundle, ICU4J MessageFormat, java.text.MessageFormat in the Java API.