Returns string formatted according to givenformat string.
Returns string formatted according to givenformat string. Format strings are as forString.format (@see java.lang.String.format).
[Since version 2.12.16]Use `formatString.format(value)` instead of `value.formatted(formatString)`,\nor use the `f\"\"` string interpolator. In Java 15 and later, `formatted` resolves to the new method in String which has reversed parameters.