With MessageFormat, we can output String with parameters:
MessageFormat:
private static final String FAILURE = "#ERROR: FAILED TO LOCALIZE {0}";
String value = MessageFormat.format(FAILURE, new Object[] { new Integer(1) });