Top  | Previous | Next

Strings / stringFormat

stringFormat(format, args...)

Returns a formatted string using the specified format string and arguments.

 

See String.format(java.lang.String, java.lang.Object...) for more information.

 

stringFormat("Hello %s", "world")

... returns "Hello word"

 

stringFormat("%s, %s, %s", 1, 2, 3)

... returns "1, 2, 3"

 

stringFormat("%d, %d, %d", 4, 5, 6)

... returns "4, 5, 6"