String.format()

Signature

String format (String message, Objects... arguments)

Domain

action, condition

Description

Returns the message string formatted with arguments.

Parameters

NameTypeDescription
messageStringThe String that contains the pattern(s) specified by %s.
argumentsObject[]The argument values to substitute.

Returns

TypeDescription
StringA String with parameters substituted.

Cautions

none

Example


String p.msg = String.format ("Hello %s, p.name);