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