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