I have a text like:
DISK_ERROR_MESSAGE = "Server %s is using more than 90% of the disk."
The problem, is when I try to do something like:
String.format(DISK_ERROR_MESSAGE,host.getName())
Java launches the error:
Method threw 'java.util.MissingFormatArgumentException' exception.
java.util.MissingFormatArgumentException: Format specifier '% o'
The problem is that % of the 90%.
But I don't know how to avoid it without separating the text in two strings.