java templated string code example Example: java template string String message = String.format("Hello! My name is %s, I'm %s.", name, age);