Is it possible to format a string given a variable number of arguments?
For example, if I have String array arg which can be any number of arguments, is it possible to get a formatted string (assuming the message string has the same number of %s as the length of the arg array?)
private static String getValue(String... arg) {
String value = String.format(message, arg);
}
Thank you.