any tips on improving this? ``` fun get(key: Stri...
# getting-started
d
any tips on improving this?
Copy code
fun get(key: String, args: Array<Any?>?): String {
    if (args == null) return MessageFormat.format(get(key), args)
    return MessageFormat.format(get(key), *args)
}
(the java signature is
format(String pattern, Object... args
)