java-format (GNU gettext utilities) (original) (raw)
Next: C# Format Strings, Previous: Python Format Strings, Up: The Translator’s View [Contents][Index]
15.3.5 Java Format Strings ¶
There are two kinds of format strings in Java: those acceptable to theMessageFormat.format
function, labelled as ‘java-format’, and those acceptable to the String.format
andPrintStream.printf
functions, labelled as ‘java-printf-format’.
Java format strings are described in the JDK documentation for classjava.text.MessageFormat
,https://docs.oracle.com/javase/7/docs/api/java/text/MessageFormat.html. See also the ICU documentationhttp://icu-project.org/apiref/icu4j/com/ibm/icu/text/MessageFormat.html.
Java printf
format strings are described in the JDK documentation for class java.util.Formatter
,https://docs.oracle.com/javase/7/docs/api/java/util/Formatter.html.