String.format


String.format

format public static String format(String format, Object... args) Returns a formatted string using the specified format string and arguments. The locale always used is the one returned by Locale.getDefault(). Parameters: format - A format string args - Arguments referenced by the format specifiers in the format string. If there are more arguments than format specifiers, the extra arguments are ignored. The number of arguments is variable and may be zero. The maximum number of arguments is limite...



원문링크 : String.format