The list of methods to do Message Format are organized into topic(s).
String
format(String activity, Object item, Long count, Long total) format
String msg;
if (count != null) {
if (total != null) {
msg = MessageFormat.format("{0} {1} ({2} of {3})", activity, item, count, total);
} else {
msg = MessageFormat.format("{0} {1} ({2})", activity, item, count);
} else {
...
String
format(String message, Object... params) Formats the message with the given arguments.
if (params != null && params.length > 0)
return MessageFormat.format(message, params);
else
return message;